Command Line Flashcards
print work directory
pwd
shows what directory user is currently in.
$ means
type what follows into the terminal and hit return
list complete (unhidden) contents of current directory
ls
create a new folder in current directory
mkdir folderName
synonym for folder
directory
open a different directory
cd folderName
shortcut for home directory
~
abbreviation for the parent folder
..
to auto-complete in command line applications
press tab
agnostic terms for command line applications
“command line interface” or “the shell”
create or update a file on a Mac
touch
equivalent to “touch” for Linux or Windows
type NUL > filename.filetype
or, for advanced stuff but without the error message:
fsutil file createnew filename.filetype filesize
what does BASH stand for?
Bourne Again SHell (Bourne was the name of one of the original programs using the terminal)… means the same thing as CLI
copy a file
cp filename.fileytpe newfilename.filetype
delete a file
rm filename.filetype