Compressing and Archiving files in AIX Operating System

Some AIX basic commands

  • who Display the connected users
  • whoami Display the current user connected
  • man Display manual of a command
    • man ls
  • df Display information about total space and available space on a file system
  • du Display the file space usage
  • chfs Change attributes of a file system
    • chfs -a size=+500M /usr
  • su Change the current user connected
    • su - user
  • lp Sent a file to the spooler
  • lpr Sent a file to the spooler
  • wget  Wget is a free utility for non-interactive download of files from the Web.
    • wget -b ftp://ftp.arcudi.org/file.tar.gz Download the file.tar.gz in backgroup
  • lastreboot See when the system is rebooted the last time

AIX Compress and Archive Commands

  • gzip Compress a file
    • gzip file.tar Create a compressed file file.tar.gz
    • gzip -d Unpack a *.gz file Uncompress a file.tar.gz file
    • tar cvf - directory/ | gzip > toto.tar.gz Create a compressed tar file in a single command
  • zip Compress a file
  • tar  Archive a file
    • tar -tvf file Verify the content of a tar file
    • tar -xvf file Unpack a tar file
    • tar -c file repertory Create a tar file
    • tar -cvfX file.tar exclude.txt /tmp/toto/ Create a tar file exluding directories that are present in the exclude.txt file
    • tar cvf - directory/ | gzip > toto.tar.gz Create a compressed tar file in a single command
  • history See the last command entered
  • nl Number lines in a file
    • nl -ba file.txt
  • lssrc See the status of a subsystem
    • lssrc -ls dhcpsd

0 Comment to "Compressing and Archiving files in AIX Operating System"

Post a Comment