Containerization

Linux Commands

Linux as an OS was designed and created by Linus Torvalds in 1991. Widely used today, Linux and it's various subbranches are considered to be some of the most powerful and lightweight operating systems available. While it has changed considerably since it's inception, the command line prompt (terminal) is still one of the most important tools for this operating system.

If you needed to login to a Linux environment via Docker Container for example, you would use the "docker run [repositoryName:tagName] /bin/bash" command. There is more information about this and other Docker Commands in the Docker Servers tutorial.

Below are some of the most widely used and essential commands in Linux.

pwd

Print Working Directory is used to show you where you currently are.

clear

Clears the current terminal window's contents.

man [command]

Manual that provides help for the command.

ls

List command used to show you where you currently are.

cd

Current Directory command used to navigate to a specific directory or folder (case sensitive).

Variations

cd ..

Navigates to one directory higher than the current working directory.

cd /

Navigates to root directory.

cd ~

Navigates to home directory.

cp [sourceFile] [destinationFile]

Copy command used to copy a file or folder.

rm [fileName]

Remove command used to remove a file.

mkdir [directoryName]

Make Directory command used to create a new directory.

rmdir [directoryName]

Remove Directory command used to remove a directory.

rmdir -r [directoryName]

Remove Directory with the recursive flag enabled used to remove a directory and all of it's contents.