Bash (Linux/Unix) Flashcards

1
Q

pwd

A

print working directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

hostname

A

my computer’s network name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

mkdir

A

make directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

cd

A

change directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ls

A

list directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

rmdir

A

remove directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

pushd

A

push directory

(add directory to the stack)

don’t go to much into stacks at this point, come back to later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

popd

A

pop directory

(removed directory from the stack)

don’t go to much into stacks at this point, come back to later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

cp

A

copy file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

mv

A

move file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

less

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

cat

A

print the whole file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

xargs

A

execute arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

find

A

find files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

man

A

read a manual page - documentation in linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

apropos

A

find which manual page is appropriate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

env

A

look at your environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

echo

A

display a string or text to the terminal

frequently used utility for printing output, debugging scripts, and creating text files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

export

A

export/set a new environmental variable

20
Q

exit

A

exit the shell

21
Q

sudo

A

“super user do” runs a command with elevated privileges

22
Q

(reverse card)

print working directory

23
Q

(reverse card)

my computer’s network name

24
Q

(reverse card)

make directory

25
# (reverse card) change directory
cd
26
# (reverse card) list directory
ls
27
# (reverse card) remove directory
rmdir
28
# (reverse card) push directory (add directory to the stack) don't go to much into stacks at this point, come back to later
pushd
29
# (reverse card) pop directory (removed directory from the stack) don't go to much into stacks at this point, come back to later
popd
30
# (reverse card) copy file or directory
cp
31
# (reverse card) move file or directory
mv
32
# (reverse card) page through a file
less
33
# (reverse card) print the whole file
cat
34
# (reverse card) execute arguments
xargs
35
# (reverse card) find files
find
36
# (reverse card) read a manual page
man
37
# (reverse card) find which manual page is appropriate
apropos
38
# (reverse card) look at your environment
env
39
# (reverse card) print some arguments
echo
40
# (reverse card) export/set a new environmental variable
export
41
# (reverse card) exit the shell
exit
42
# (reverse card) "super user do" runs a command with elevated privileges
sudo
43
ls -a
list files and hidden files .
44
ls -F
list file type / Directory @ Link * Executable
45
chmod (def & how to use)
change mode command - changes user permissions chmod [ugoa] [+-=] [rwx] command + user category + add,subb,set + permission
46
chgrp
change the file's group
47
umask
file creation mask command - sets the default permissions for a file