PE from bash day 2 Flashcards

to close with and destroy the enemies of the united states of america

1
Q

What type of loop will terminate if the command raises to be false

A

While

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

What type of loop will terminate if the command becomes true?

A

Until

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

What character can be used to match any character?

A

*

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

What command would you use in order to use the output of one command as the input for another command?

A

(pipe)

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

Where does information about the file system such as its size and block size reside?

A

superblock

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

Scripts should first be made executable by using which command?

A

chmod 777

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

what files store shell commands?

A

sh

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

Which type of input is occurring in the command: myscript < mydata.txt?

A

stdin (standard input)

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

If you wanted to hav a certain word set for a single letter (example when you use p, it really means pie), what command would you use to do this?

A

Alias

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

What is the “s’ permission bit on a file?

A

s indicated SUID (does not run with the privileges of the user who launched it, but with that of the file owner instead)

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

What utility can you use to copy a file from one machine to another?

A

SCP

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

How many types of shells are there?

A

dumb question but 4

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

A dot (.) in front of a file means that it’s what?

A

hidden

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

How many bytes is the typical size of a unix block?

A

1024 i guess

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

3 types of file permissions

A

read, write and execute

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

The full path to a directory is called what?

A

absolute path (vs. relative path)

17
Q

what type of variable is usually created by the OS and defined by a capital letter?

A

system defined

18
Q

What type of permissions grant a user with all rights at the root level?

A

owner permission

19
Q

What treats each quoted argument as separate arguments?

A

@…dont @ me bro

20
Q

What would you add to the end of a script so it runs in the background?

A

&

21
Q

What decides which users are allowed to run crontab?

A

cron.allow….whatever that means