Ubantu Flashcards

1
Q

Cd

A

Back to home

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

Cd /documents

A

Go to documents folder

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

On the directory documents make folder

A

Mkdir test

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

Go to folder in folder

A

Documents$
Cd test/
Now you are in test folder

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

Make parent and child folder

A

Mkdir -p parent/child/child

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

Remove directory

A

rmdir

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

Remove child folder when you are in parent folder

A

rmdir test

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

Remove parwnt and child

A

rmdir -p parent/child/child

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

File type

A

File filename.type

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

Back one directoey

A

Cd..

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

Make file whit touch command

A

touch filename.type

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

Make mulitifile with touch

A

touch filename.type filename.type

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

remove file

A

rm filename.type

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

Force remove directory

A

rm -rf foldername

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

Copy file

A

Cp firstfoldername.type newfoldername.type

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

Copy file in other location

A

Cp filename.type /parent/parent/child/

17
Q

Rename file

A

mv filename.type newname.type

18
Q

Move and rename folder with mv command

A

mv filename.type parent/newname.type

19
Q

Read 10 line of folder

A

head filename.type

20
Q

Read 5 line of folder

A

head -5 filename.type

21
Q

Read last 10 line file

A

tail filename.type

22
Q

Print full file

A

cat filename.type

23
Q

Put text to file

A

Echo texttest filename.type

24
Q

Display all file text

A

Cat filename.type

25
Q

Display more than one file with cat command

A

Cat filename.type filename.type

26
Q

Put more than one file to the new file

A

Cat filename.type filename.type > new filename.type

27
Q

Creat new file and put text on that as aa.e time

A

Cat > filename.type (enter)
Your text

Control +D

28
Q

Copy file with cat

A

Cat filename.type > new filename.type

29
Q

Display file content page by page

A

More filename.type