Useful Commands – Linux
Useful Linux commands
Command | Purpose | Usage |
---|---|---|
w |
Show who is logged on and what they are doing, the load average and uptime. | w.png |
uptime |
Tell how long the system has been running. |
![]() ![]() |
top |
display Linux processes |
![]() ![]() |
ls |
list directory contents |
![]() ![]() |
ll |
list directory contents with details |
![]() ![]() |
cp |
copy files and directories |
![]() ![]() |
mv |
move (rename) files |
![]() ![]() |
rm |
remove (delete) files or directories |
![]() ![]() |
vi |
Vi IMproved, a programmers text editor |
![]() ![]() |
grep |
grep, egrep, fgrep – print lines matching a pattern |
![]() ![]() |
find |
search for files in a directory hierarchy | find.png |
vim |
vim – Vi IMproved, a programmers text editor |
![]() ![]() |
pico |
simple text editor in the style of the Alpine Composer | pico.png |
cat |
concatenate files and print on the standard output | cat.png |
tail |
output the last part of files | tail.png |
more |
file perusal filter for crt viewing | more.png |
less |
opposite of more | less.png |
touch |
change file timestamps |
![]() ![]() |
chown |
change file owner and group |
![]() ![]() |
chmod |
change file mode bits |
![]() ![]() |
zip |
package and compress (archive) files | zip.png |
unzip |
list, test and extract compressed files in a ZIP archive | unzip.png |
gzip |
gzip, gunzip, zcat – compress or expand files | gzip.png |
gunzip |
gzip, gunzip, zcat – compress or expand files | gunzip.png |
tar |
an archiving utility | tar.png |
wget |
The non-interactive network downloader. | wget.png |
yum |
yum is an interactive, rpm based, package manager. | yum.png |
apt-get |
APT package handling utility — command-line interface | apt-get.png |
du |
estimate file space usage |
![]() ![]() |
df |
report file system disk space usage |
![]() ![]() |