Command Linux 120 Cmds
Command Linux 120 Cmds
1. SYSTEM
2. HARDWARE
3. STATISTICS
5. FILE COMMANDS
6. PROCESS RELATED
$ chmod 777 /data/test.c Sets rwx permission for owner , rwx permission for group, rwx permission
for world
$ chmod 755 /data/test.c Sets rwx permission for owner,rx for group and world
$ chown owner-user file Changes the owner of the file
$ chown owner-user:owner-group file-name Changes the owner and group owner of the file
$ chown owner-user:owner-group directory Changes the owner and group owner of the directory
8. NETWORK
$ scp file.txt server2:/tmp Secure copies file.txt to remote host /tmp folder
$ scp nixsavy@server2:/www/*.html /www/tmp Copies *.html files from remote host to current
system /www/tmp folder
$ scp -r nixsavy@server2:/www /www/tmp Copies all files and folders recursively from remote
server to the current system /www/tmp folder
$ rsync -a /home/apps /backup/ Synchronizes source to destination
$ rsync -avz /home/apps [email protected]:/backup Synchronizes files/directories between
the local and remote system with compression enabled