0% found this document useful (0 votes)
10 views2 pages

Deploying Websites - Command Line For Building Websites Cheatsheet - Codecademy

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Deploying Websites - Command Line For Building Websites Cheatsheet - Codecademy

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Cheatsheets / Deploying Websites

Command Line for Building


Websites

pwd Print Working Directory


The shell command pwd displays the file $ pwd
path from the root directory to the current
/Users/sonny/Downloads
working directory.

mkdir Make Directory


The shell command mkdir is used to $ mkdir new-directory
make a new directory in the filesystem
$ ls
according to its argument. If a file path is
given, the new directory will be placed at the old-directory new-directory
end. Otherwise, it will create a new directory
in the current working directory.

ls List
The shell command ls is used to list the $ ls Desktop
contents of a directory. If no arguments are
resume.pdf
given, it will list the contents of the current
working directory. photo.png

cd Change Directory
The shell command cd is used to move $ cd some-directory
throughout the filesystem of a computer. It
$ cd ..
accepts a variety of arguments:
Full file paths.
Names of children of the current
directory.
.. the parent of the current
directory.
:
Filesystem Structure
A computer’s filesystem organizes the data
stored by a computer, so that it can be easily
retrieved by the user.
Files are generally represented in a tree-like
structure, in which any parent directory can
have any number of children. The root
directory is then found at the base of the
tree.

touch Create New File


The shell command touch creates a new $ touch grocery-list.txt
file in the current working directory with the
name provided.

The Command Line


The command line allows a user to navigate $
the filesystem and run built-in programs or
custom scripts. In Unix, the command line
interface is called Bash, and the shell prompt
is the $ .

Helper Commands
Helper commands for the command line
include:
clear to clear the terminal
tab to autocomplete the line
↑ and ↓ to cycle through
previous commands

Print Share
:

You might also like