Shell Commands Flashcards
pwd
Print working directory
cd~
Change directory to Home
cd
Change directory
mkdir
Make directory
rmdir
Remove directory
ls (LS)
List items in directory
pushd
Push directory to Temp list and go to new directory
popd
Pop back to last directory pushd to temp list
cp -r
Copy directory and or file to a new location.
ditto
Copy dir or file (creates new dir or merges with existing and retains resource forks and metadata)
Interrupt a running command
Control C (for cancel)
-v
Verbose mode; Terminal will type out what it is doing while it executes a command
less some_File.txt
View a file
cat
Print the whole file in terminal window without formatting.
mv
Move a file or directory to another location
Command K
Clear Terminal page
clear
Move Terminal page up and out of sight
touch
Create an empty file.
cd ../../
go backwards in file path
env
Look at our environment
echo
Print some arguments
exit
exit a program
find
find files
xargs
Execute some arguments
grep
Find something in a file
man
Read a manual page
apropos
Find what manual page is appropriate
export
export/set a new environment variable
sudo
root user?)