Basic Bash Commands Flashcards

1
Q

ls -a

A

hidden files

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

ls -l

A

outputs in long form

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

ls

A

lists contents of current directory

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

ls /var/log

A

lists contents of specified directory

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

touch

A

creates a new file or updates timestamp on existing file

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

shutdown system with no time delay

A

shutdown -h

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

shutdown system in 90 seconds

A

shutdown -h -t 90

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

reboot system with no time delay (without reboot command)

A

shutdown -r

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

su command, meaning

A

substitute user

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

log in as root

A

su - root

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

Searches the name section of all man pages for a keyword the user provides. Helps you describe a command then search man pages to find a command that does what you want

A

apropos

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

Displays a brief description of a command, telling you what it does

A

whatis

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

Alternative to man pages - favored by man project but not as widely adopted as man

A

info

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

Displays a quick summary of the usage of a command and a list of arguments that can be used

A

–help

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

This directory contains documentation for libraries, system utilities and other software packages installed on the system. Each package has its own subfolder and each subfolder usually contains seperate documents that list the authors, licensing information, installation instructions, generate README, etc

A

/usr/share/doc/

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