Bash (Linux/Unix) Flashcards
pwd
print working directory
hostname
my computer’s network name
mkdir
make directory
cd
change directory
ls
list directory
rmdir
remove directory
pushd
push directory
(add directory to the stack)
don’t go to much into stacks at this point, come back to later
popd
pop directory
(removed directory from the stack)
don’t go to much into stacks at this point, come back to later
cp
copy file or directory
mv
move file or directory
less
allows users to view the content of a file or output in a scrollable manner.
It’s especially useful for reading large files or paginated command output without loading everything into memory at once.
cat
print the whole file
xargs
execute arguments
find
find files
man
read a manual page - documentation in linux
apropos
find which manual page is appropriate
env
look at your environment
echo
display a string or text to the terminal
frequently used utility for printing output, debugging scripts, and creating text files.
export
export/set a new environmental variable
exit
exit the shell
sudo
“super user do” runs a command with elevated privileges
(reverse card)
print working directory
pwd
(reverse card)
my computer’s network name
hostname
(reverse card)
make directory
mkdir