Linux Flashcards

1
Q

how do you determine which shell is currently in use on your system?

A

echo $SHELL

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

how can you change the shell that you’re using?

A

chsh –help

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

when using the ls command how can you get an even more detailed list of files?

A

the -la command. the a will show all hidden files.

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

what does the touch command do?

A

it can create a new empty file

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

what does dark blue text mean?

A

folders and directories

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

what does light blue text mean?

A

linked files

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

what does white text mean?

A

a regular file, so for example a text file, word document or PDF.

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

what does green text mean?

A

a sticky directory

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

how can you list out files starting with a specific letter?

A

type the letter and then a star following it. for example: b*

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

how can you get linux to show you one page at a time of info?

A

|more

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

what will the df command show you?

A

free space, file system, total size, space used, % used, mount point

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

what will the du command show?

A

the disk usage and how the device is used

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

what is a command you can use to edit text?

A

nano

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

how can you exit out of nano?

A

ctrl x

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

what is vi?

A

a visual editor and a way to edit text in unix systems.

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

what is the grep tool in linux?

A

a utility for searching plain text data sets for lines that match regular expression

17
Q

what number is the write permission?

A

2

18
Q

what number is the read permission?

A

4

19
Q

what number is an execute permission?

A

1

20
Q

how can you install applications via linux?

A

apt-get

21
Q

what does the ps command do?

A

allows you to see currently running processes

22
Q

how can you get detailed information on a command in linux?

A

man and then enter the command

23
Q

what is cron?

A

a job scheduling utility