0% found this document useful (0 votes)
100 views

AIX Basic Commands

This document lists basic commands and compression/archiving commands for AIX systems. It describes commands for displaying connected users and current user (who, whoami), viewing manuals (man), checking disk usage (df, du), changing file system attributes (chfs), changing users (su), sending files to the printer spool (lp, lpr), downloading files (wget), checking last reboot time (lastreboot), compressing files (gzip, zip, tar), archiving files with tar, viewing command history (history), numbering lines in a file (nl), and checking subsystem status (lssrc).

Uploaded by

lovetheme
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

AIX Basic Commands

This document lists basic commands and compression/archiving commands for AIX systems. It describes commands for displaying connected users and current user (who, whoami), viewing manuals (man), checking disk usage (df, du), changing file system attributes (chfs), changing users (su), sending files to the printer spool (lp, lpr), downloading files (wget), checking last reboot time (lastreboot), compressing files (gzip, zip, tar), archiving files with tar, viewing command history (history), numbering lines in a file (nl), and checking subsystem status (lssrc).

Uploaded by

lovetheme
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

AIX basic commands

who Display the connected users

whoami Display the current user connected

man Display manual of a command


o 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


o chfs -a size=+500M /usr

su Change the current user connected


o 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.
o

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


o gzip file.tar Create a compressed file file.tar.gz
o gzip -d Unpack a *.gz file Uncompress a file.tar.gz file
o tar cvf - directory/ | gzip > toto.tar.gz Create a compressed tar file in a single
command

zip Compress a file

tar Archive a file


o tar -tvf file Verify the content of a tar file
o tar -xvf file Unpack a tar file
o tar -c file repertory Create a tar file
o tar -cvfX file.tar exclude.txt /tmp/toto/ Create a tar file exluding directories that are
present in the exclude.txt file
o 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


o nl -ba file.txt

lssrc See the status of a subsystem


o lssrc -ls dhcpsd

You might also like