Useful Commands – Linux

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.

uptimeuptime

top

display Linux processes

toptop

ls

list directory contents

lsls

ll

list directory contents with details

llll

cp

copy files and directories

cpcp

mv

move (rename) files

mvmv

rm

remove (delete) files or directories

rmrm

vi

Vi IMproved, a programmers text editor

vivi

grep

grep, egrep, fgrep – print lines matching a pattern

grepgrep

find

search for files in a directory hierarchy find.png

vim

vim – Vi IMproved, a programmers text editor

vimvim

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

touchtouch

chown

change file owner and group

chownchown

chmod

change file mode bits

chmodchmod

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

dudu

df

report file system disk space usage

dfdf

wizard has written 12 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>