Centos 7 Common Commands Flashcards
sudo
Runs a command as Super User
yum
Lets you install software and packages
ls
List Directory Contents
cd
Change Directory
pwd
Display pathname
mv
Rename or move files
mkdir
Make Directory
rm
Delete files or folders
who
Checks who is logged on
systemctl
Manages OS services and start-ups
firewall-cmd
CentOS Firewall
nano
Text editor
tar
Unzips tar archives(+more)
unzip
Unzips an archived folder
chmod
Change file permissions
chown
Changes owner of a file or folder
Python -m SimpleHTTPServer
Creates a simple web page for the current working directory over port 8000.
mtr
A command which is a combination of ‘ping’ and ‘traceroute’ command
Ctrl+x+e
This key combination fires up, an editor in the terminal, instantaneously.
nl
Outputs the content of text file with lines Numbered.
shuf
Randomly selects line/file/folder from a file/folder.
ss
Outputs Socket Statistics.
Last
Want to know history of last logged in users? This command comes to rescue here.
curl ifconfig.me
Shows machine’s external IP Address.
tree
Prints files and folders in tree like fashion, recursively.
Pstree
prints running processes with child processes, recursively.