Bash commands (terminal) Flashcards
pwd
print working directory (shows where you are)
LS
list directory (shows the list of directories in the directory you’re in)
cd
change directory (choose where you want to go)
cd ..
go to parent directory (back)
command + k
clear screen
w
remove file (it deletes it without sending to trash WATCHOUT!!)
rm -r
remove folder (and everything inside! WATCH OUT!)
nano
to open nano text editor
mkdir
make directory (to create a directory)
touch
create file (e.i. touch test.txt)
rmdir
remove directory
rmdir , replacing with the name of the directory to remove
pushd
push directory
popd
pop directory
cp
copy a file or directory
mv
move a file or directory
less
page through a file
cat
print the whole file
xargs
execute arguments
find
find files
grep
find things inside files
man
read a manual page
apropos
find what man page is appropriate
env
look at your environment
echo
print some arguments
export
export/set a new environment variable
exit
exit the shell
sudo
DANGER! become super user root DANGER!
GENERAL TERM (not terminal): CLI
Command line interface