Useful commands

  • Change ownership and group:
    chown username file.txt
    chgrp groupname file.txt
    Run ls -l file.txt to check the file permission
  • Rename file
    mv oldfile.txt newfile.txt
  • Create tar file
    tar -zcvf filenuevo.tar.gz /home/fernando
    Decompress the tar file
    tar -xzvf filenuevo.tar.gz