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
(reverse card)
change directory
cd
(reverse card)
list directory
ls
(reverse card)
remove directory
rmdir
(reverse card)
push directory
(add directory to the stack)
don’t go to much into stacks at this point, come back to later
pushd
(reverse card)
pop directory
(removed directory from the stack)
don’t go to much into stacks at this point, come back to later
popd
(reverse card)
copy file or directory
cp
(reverse card)
move file or directory
mv
(reverse card)
page through a file
less
(reverse card)
print the whole file
cat
(reverse card)
execute arguments
xargs
(reverse card)
find files
find
(reverse card)
read a manual page
man
(reverse card)
find which manual page is appropriate
apropos
(reverse card)
look at your environment
env
(reverse card)
print some arguments
echo
(reverse card)
export/set a new environmental variable
export
(reverse card)
exit the shell
exit
(reverse card)
“super user do” runs a command with elevated privileges
sudo
ls -a
list files and hidden files
.<filename></filename>
ls -F
list file type
/ Directory
@ Link
* Executable
chmod
(def & how to use)
change mode command - changes user permissions
chmod [ugoa] [+-=] [rwx]
command + user category + add,subb,set + permission
chgrp
change the file’s group
umask
file creation mask command - sets the default permissions for a file