Foundational Utilities Flashcards
ls
List files in the working directory
cd
Change directory
Ping
Sends Internet Control Message Protocol (ICMP) echo request packets to the target host and wait for an echo reply.
nano
Minimalist text editor pre-installed on numerous Linux distributions.
chmod
“Change mode.” Changes the permissions of a file or directory.
rm
Remove file
(rm -r can remove directories)
traceroute
Network utility that allows you to trace the path that packets take from a source to a destination, showing each hop (router) along the way. Feature rich - can use tcp, udp, icmp. Requires root for advanced functionality.
tracepath
network utility that allows you to trace the path that packets take from a source to a destination, showing each hop (router) along the way. Simplistic and udp only. Does not require root.
rmdir
removes empty directories
sed
Stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline).
Commonly used for “find and replace” operations.
ssh
Openssh remote login client.
A program for logging into a remote machine and for executing commands on a remote machine. It is intended to provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections, arbitrary TCP ports and UNIX-domain sockets can also be forwarded over the secure channel.
apt
provides a high-level commandline interface for the package management system.
apt-get
Apt package handling utility
apt-cache
Query the apt cache.
man
Display manual pages
sudo
“super user do”
Run single commands as root or another user.
su
“switch user”
It allows you to switch to another user account without logging out of the current session. Using this command without specifying a username, it defaults to the root user, which is the system administrator account with full privileges.
find
search for files in a directory hierarchy
grep
print lines that match patterns in a file
pwd
Print working directory
cp
Copy files and directories
telnet
Interface for a protocol used to establish an insecure remote connection with another device or server. It enables you to manage a remote machine using the command line, similar to SSH but without the encryption SSH provides.
mv
Utility used to move files and folders. It is also used for renaming files and folders.
Ifconfig
configure a network interface