Linux Commands
1. zip -rj " folder name".zip ".folder name -Zip folder
tar -cf folder.tar urfoldername - to tar the folder
gzip folder.tar - Zip
scp -r folder.tar.gz username@serverName:/home/user - Copy to another server
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
No comments:
Post a Comment