Linux Commands Flashcards
ls
Lists directory contents.
ls -l | more - pipes more through
pwd
Displays the current working directory.
mv
Moves/Renames a file.
mv [First Text] [Second Text]
cp
Copies a file.
cp [First Text] [Second Text]
rm
Deletes files but not directories.
chmod
Change mode of a file system object.
chmod ### Object
chown
Change file owner and group.
Sudo chown [OWNER:GROUP] Object
su/sudo
Elevates permissions.
apt -get
Handles application packages.
yum
Handles Red Hat application packages.
ip
Manage network interface
ip address
ip route
df
Disk Free. Shows file systems and free space.
df -h shows human readable sizes
grep
File text in a file.
grep PATTERN [FILE]
ps
View current user processes.
ps -e | more - shows all processes.
man
Help command.