File System Flashcards

1
Q

Hoe krijg je je command prompt terug

A

Ctrl + c

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

Hoe beweeg je navigating in je file system

A

cd map cd ..
pwd
ls ls -l /ll ll -tr

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

Hoe maak je files en folders

A

Touch naam1 naam2 naam3
Vi
nano

Mkdir (multi/enkel)

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

Command voor kopie

A

Cp filename
Cp -r folder-of filename

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

Hoe kan je files en folders vinden

A

Find (./~) -name “naam”
Locate. name Updatedb in su

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

Links hoe gebruik je die

A

Ln file-name
In -s file-name

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

File permission
Algemene
Numerieke

A

Chmod ugo(+=-)rwx filename
Chmod 764 filename

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

File ownerschip wat t e doen

A

Chown (root/user) filename
Chgrp

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

3 types help command

A

Whatis command
Command –help
Man command

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

Adding text to files

A

Vi
Redirect
Echo redirect

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

Verwijderen van files en folders

A

Rmdir map/name
Rm
rm -r files en niet lege folders

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

Redirects types

A

Output > of&raquo_space;
Input <

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

Noem de file management commands

A

Cp file-name
Rm
Mv
Mkdir
Rmdir. Rm -r
Chown
Chgrp

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

File display commands

A

Cat
More
Less
Head
Tail

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

Text proccesing command

A

cut
awk
grep egrep
sort -u
wc
sed

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

cut command

A
  • cut –c1 filename
  • cut –c1,2,4 filename
  • cut –c1-3 filename
  • cut –c1-3,6-8 filename
  • cut –b1-3 filename
  • cut -d: -f 6 /etc/passwd
    list first 6th column separated by :
17
Q

awk command

A

*awk ‘{print $1}’ file
*ls –l | awk ‘{print$1,$3, $NF}’
*awk ‘/Jerry/ {print}’ file
*awk -F: ‘{print $1}’ /etc/passwd
*echo “Hello Tom”|awk ‘{$2=”Adam”; print $0}‘
*cat file | awk ‘{$2=“Imran”; print $0}‘
*awk ‘length($0) > 15‘ file

18
Q

grep of egrep command

A

grep –i KEYword file
*grep –n keyword file
*grep –v keyword file
*grep keyword file | awk ‘{print $1}’
*ls –l | grep Desktop
*egrep –i “keyword|keyword2” file= Search for 2 keywords.

19
Q

sort command

A

sort file
*sort –r file
*sort –k2 file
sort -u

20
Q

wc command

A

wc file
*wc –l file
*wc –w file
*wc –b file

21
Q

compress a file and un-compress

A

tar cvf filename tar xvf filename
gzip
gunzip

22
Q
A