04 Flashcards

1
Q

What symbol indicates a non-privileged user?

A

#

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

What symbol indicates a privileged user in windows?

A

@

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

What is root?

A

The user root

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

What is /

A

root of the file system

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

what is /root?

A

The user root’s home directory

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

What does the PWD stand for/do? What’s it’s windows variant?

A

Print Working Directory, CD

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

What does the LS command stand for/do? What’s it’s windows variant? What are their options?
LISA
TAS

A

List directory, -l(provides a long lisitng), I(provides inode index), -S(Displays system block files) A-(include all invisible files)

Dir
/T(provides time fields, when it was created,accessed,last written too)
/A(Allows to filter by specific attirbutes)
/S(Lists all directories/sub directories

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

How do you find out about the system information in Linuix/Windows?

A

uname -a/ ver

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

When using the tree command in Linux how do you append for directories?

A

tree -f

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

How do you see the date/time in linuix vs windows? How do you set them?

A

date -s 00/00/0000 32:56:87
date /t to not change
time /t to not change

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

How do you find help in windows vs linuix?

A

help
man

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

How do you change directory in linuix vs windows?

A

cd

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

What are the text viewers in linuix?

A

Head, tail, more less, cat

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

How do you combine files in Linux and display their contents?

A

cat

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

What do each of these directories contain?
/boot
/bin
/usr
/lib
/dev
/etc
/home
/opt
/proc
/root
/tmp
/var

A

static files of the boot loader
essential command binaries
essential system binaries
universal system resources
shared libraries (network files)
device files (block and charcters)
Everything configurable(admin/config files)
user home diretories
optional third party software (steam)
proccess used by the system
roots home directory
temporary files
variable size data, (logs)

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

What command starts the vi?

A

vi /location/filename

17
Q

what are the two modes in vi?

A

command, insert

18
Q

What does each insertion command do?
i
a
o
O
yy
p
5p

A

insert before cursor
append after cursor
insert below line
insert above line
yanks line into memory
pastes whats in yy
pastes whats in yy 5 times

19
Q

What does each deletion command do?
x
r
dd

A

delete current character
replace current character
delete current line

20
Q

What keys navigate vi and how do you search for a specific string?

A

hjkl /

21
Q

what do you type in vi to add and take away a number line?

A

:set nu, :set nonu

22
Q

What do these vi commands do?
:w
:q
:q!
:wq!

A

saves changes
quits file, leaving vi open
quits without saving
saves and quits vi