Wednesday, April 14, 2010

Linux Commands

Linux Commands

1. zip -rj " folder name".zip ".folder name -Zip folder

2.

tar -cf folder.tar urfoldername - to tar the folder
3.

gzip folder.tar - Zip
4.

scp -r folder.tar.gz username@serverName:/home/user - Copy to another server
5.

tar -zxvf folder.tar.gz -Unzip

7. unzip -cf flder

8. grep -r "ipolstage" /srv/www/html/ipol >grepoutput.txt

Mydump With tabel

mysqldump -u username -p password --quick [database [table1, table2, ...]] > backup_db.sql
mysqldump -u username -p password [database [table1, table2, ...]] > backup_db.sql

http://61226.com/share/hk.swf
Count number of files in linux

ls -1 | wc -l

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home