Prompt to enter new command
$
Output specific string of text
Echo
Prints working directory onto the screen
Pwd
Displays names of files and directories in the current working directory
ls
Navigates between directories
cd
Displays the content of a file
cat
Displays just the beginning of a file by default 10 lines
head
/home
Each user in the system gets their own home directory.
/bin
This directory stands for “binary” and contains binary files and other executables. Executables are files that contain a series of commands a computer needs to follow to run programs and perform other functions.
/etc
This directory stores the system’s configuration files.
/tmp
This directory stores many temporary files. The /tmp directory is commonly used by attackers because anyone in the system can modify data in these files.
/mnt
This directory stands for “mount” and stores media, such as USB drives and hard drives.
Displays end of the file by default 10 lines
tail
Returns the content of a file one page at a time
Less
Searches a specific file and returns all lines in the file containing a specified string
grep
Searches for directories and files that meet specific criteria
Find
Sends the standard output of one command as standard input to another command for further processing
(vertical line piping)
Find files in a directory that contain specific name
-name (case sensitive)
-iname (not case sensitive)
Finding files or directories modified within a certain time
-mtime
-based on days +1 indicates a day ago -1 indicates files less than a day ago
Creates new directory
mkdir
Remove or delete directory
rmdir
Create a new file
touch
Removes or deletes files
rm
Moves a file or directory to a new location
mv