OSX terminal Flashcards
This command prints the location of your current working directory.
pwd
Used to print contents of a directory, by default it lists contents of current working directory
ls
move around with
cd
to print the contents of a file to the screen(
cat
copy files and directories with this command
cp
command is used to move or rename directories and files
mv
command is used to remove directory or files.
rm
used to make a new directory in linux
mkdir
remove a directory,
rmdir
Linux command allows you to run programs or other commands with administrative privileges
sudo
Takes you to the root directory.
cd/
Takes you up one directory level
cd..
Takes you to the previous directory
cd-
Removes an empty directory.
rmdir (“remove directory”) –
Removes a directory along with its content.
rm -r (“remove recursively”) –
command displays all of your previous commands up to the history limit.
history
command displays information about the disk space usage of all mounted filesystems.
df