Command Vocabulary Sheet - Green-Biome-Institute/AWS GitHub Wiki
Go back to tutorial overview
Commands covered in this tutorial:
whoami
: Output the user currently logged into and executing commands at the command line window
date
: Output the current date and time
cal
: Output a calendar view with the current day highlighted on it
echo [words]
: Print [words] onto the screen
man [commands]
: Read the manual for [command]
pwd
: Print your current working directory
ls
: List the contents of your current working directory
cd [directory]
: Change directory into [directory]
cat [file]
: Read [file] onto the screen
touch [filename]
: Create a new file with the name [filename]
mkdir [dir-name]
: Make a directory named [dir-name]
rmdir [dir-name]
: Remove a directory named [dir-name]
rm [file]
: Remove [file]
mv [file] [destination]
: Move [file] to [destination]
cp [file1] [new-filename]
: Make a copy of [file1] with the new name [filename]
nano [file]
: Enter the nano editor and edit [file]
vim [file]
: Open the vim editor and edit [file]
exit
: Exit the current EC2 instance, nano editor, or terminal session
sudo [command]
: Execute [command] with administrator privileges
clear
: Clear the current text from the CLI window
lsblk
: List block devices on a Linux system
df -h
: Display amount of free space in your system
top
: Real-time view of what softwares your computer system is currently running
wc
: Newline, word, byte counter
grep
: Search for patterns within files or directories
|
: Pipe command allows you to take the output of one command and use it as the input for another
sed
: Search for patterns and replace them with something else
apt
: Download software packages.
wget
: Download files from web servers
curl
: Download files from web servers
tar
: Compress/uncompress files with the .tar or .tar.gz file extension
head
: read out the first lines of a file
tail
: read out the last lines of a file
gunzip
: Compress/uncompress files with the .gz file extension
unzip
: Compress/uncompress files with the .zip file extension
env
: show all the environment variables in the current CLI session
ssh
: Secure Shell Protocol, used for logging into and executing commands on a remote computer host.
scp
: Secure Copy Protocol, used for copying files to and from a remote computer host.
yum [software-name]
: Download software package [software-name]
dpkg [software-name]
: Download software package [software-name]
curl [url-name]
: Download the information or package at [url-name]
pip
and conda
: Download Python packages
git clone
: Download Github repositories
*
: wildcard operator allows you to include all the files and directories in your current working directory or all files that end with [txt]* or begin with [text]*
>
: Redirection operator that directs the output of a command into a new file (or overwrites the existing one)
>>
: Redirection operator that is the same as >
, except if a file already exists, it appends the output of the command to the left of it to the end of the file on the right of it
Go back to tutorial overview