Linux Flashcards

1
Q

mv

A

move a file or directory

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

rv

A

remove a file or directory

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

rmdir

A

remove a directory

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

mkdir

A

make a new directory

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

history

A

show command history

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

What can you type if command unknown

A

–help

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

How to view directory

A

ls -l or sudo ls -l /root

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

Reset the password to the “root” account

A

sudo passwd root

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

how do you add users

A

sudo useradd (fred)

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

what does su do?

A

switch users

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

what is sudo?

A

activate all abilities (root)

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

how to change password on user account

A

su root

sudo passwd fred

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

Create a new file with

A

sudo vi newfile

use : wq to save file

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

move file example

A

sudo cp newfile /root

sudo mv newfile /root

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

installing apache

A

sudo apt-get install apache2

sudo vi mypage.html

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

sudo is?

A

execute a single command with root privileges

17
Q

what does ls do

A

list the content of a directory

18
Q

what does cd do?

A

change my current location to a different directory

19
Q

cat?

A

show the contents of a file

20
Q

Pwd

A

Print working directory- where you are currently located

21
Q

Cd

A

Used for navigatuon btw directories and folders

22
Q

How do you move around in file system

A

cd Download. Go back with
cd ..
cd /-to the root

23
Q

cp

A

Copy file

Eg: cp test testcopy

24
Q

Copy into new folder

A

cp test /home/jaimie/Downloads