Terminal Commands Flashcards

1
Q

Current Directory

A

Current folder that this terminal resides in. Commands entered and files modified are scoped to this folder. A tilde (~) indicates the user’s home directory

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

Prompt

A

$

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

ls

A

list all files and folders in current directory

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

cd [directory name]

A

change directories

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

cd ..

A

go back up one directory

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

Tab key

A

Press once for terminal guess
Press twice for list of possibilities

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

sudo

A

elevated privileges command prepend

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

sudo apt purge [application]

A

remove a program and its configuration files from computer

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

sudo apt policy

A

list information about the package

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

man sudo

A

man command is short for manual. man typed in front of any command will provide manual

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

sudo apt update

A

tell system to search for potential updates and advise if available, does not install updates

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

sudo apt upgrade

A

will download and apply any updates to system76 computer

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

sudo apt full-upgrade

A

will upgrade our packages and installs or remove packages to resolve dependencies so everything is up to date

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

sudo apt install [application]

A

install a particular application and its dependencies

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

command + –help

A

quickly reference all options for a known command in current terminal session ( cd –help )

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

whatis

A

provides a short description of a command’s functionality (whatis + cmd)

17
Q

dpkg -s

A

provides an index of files installed from a package (dpkg -S [package name])

18
Q

which

A

provides the file location of a command. Can be passed into dpkg -S to perform a search of associated packages (which + cmd | xargs dpkg -S)

19
Q

apropos

A

performs a keyword search on command man pages (apropos + keyword)

20
Q

info

A

similar to man pages, more indepth descriptions and includes examples