Linux Commands Flashcards
ls
list directory contents
mv
move and rename files
rm
remove files and directories
more or less
examines files ex. less file name
vi
a text editor
sudo
super user do, lets you become root user
man
manual
du
Disk Utilization: du
You will often need to determine where and by whom disk space is being consumed, especially when
you’re running low on it! The du command allows you to determine the disk utilization on a directoryby-
directory basis.
cp
copy
cat
Concatenate Files: cat
The cat program fills an extremely simple role: it displays files. More creative things can be done
with it, but nearly all of its usage will be in the form of simply displaying the contents of text files—
much like the type command under DOS. Because multiple filenames can be specified on the
command line, it’s possible to concatenate files into a single, large, continuous file. This is different
from tar in that the resulting file has no control information to show the boundaries of different files.
pwd
Show Present Working Directory: pwd
Inevitably, you will find yourself at the terminal or shell prompt of an already logged-in workstation
and you won’t know where you are in the file system hierarchy or directory tree. To get this
information, you need the pwd command. Its only task is to print
mkdir
create or make a directory
passwd
password
chown
Change Ownership: chown
The chown command allows you to change the ownership of a file to another user. Only the root user
can do this.
chgrp
Change Group: chgrp
The chgrp command-line utility lets you change the group settings of a file. It works much like chown.