/RHEL

Red Hat Enterprise Linux

Red Hat Enterprise Linux (RHEL)

Some Commands practising

    1. gzip: gzip txt_file (txt_file.gz is just created) gunzip txt_file.gz

    2. zip: zip txt_file.zip txt_file unzip txt_file.zip

    Difference between compress and gzip commands:
    Compression => Compress command replaces the original file with a new file that has a .Z extension.
    gzip commands => The gzip command reduces the size of files.
    The original file is replaced by a file with the same name & a .gz extension.

  1. gzip -l txt_file.zip OR tar -tf test.gz

  2. sudo tar -cvf etc_backup.tar /etc

  3. sudo find /home -mtime 2

  4. sudo find /etc -user root

  5. find /home -type d

  6. locate .profile

  7. file /etc/passwd /dev/pts/0 /etc /dev/sda

  8. ls -i / /etc /etc/hosts

  9. sudo cp /etc/passwd /home (file copied as passwd) diff /etc/passwd passwd cmp /etc/passwd passwd it's not permitted to write to it so, => sudo chmod 777 passwd vi passwd => make some changes => press 'esc' and :wq (write and quit) finally press enter to save now try again diff /etc/passwd passwd cmp /etc/passwd passwd

  10. ln -s /etc/passwd /boot

  11. ln /etc/passwd /boot (No I couldn't because file already exists)

This README.md file needs to be updated professionally.