UNIX commands Flashcards

1
Q

ls

A

ls - list files and directories

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

mkdir

A

mkdir - create directory

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

rmdir

A

rmdir - remove directory

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

cd

A

cd - change dircetory

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

pwd

A

pwd - path to current directory

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

touch

A

touch - create a file

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

rm

A

rm - remove files or directories

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

mv

A

mv - move or rename a file (move file1 file2 changes the name)

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

cp

A

cp - copy files or directories

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

ln

A

ln - create a link to a file

ln tomat.txt ../bar/gurka.txt : Create hard link from tomat.txt (in directory “foo”) to gurka.txt (in directory “bar”)

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

chmod

A

chmod - change permissions of a file

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

cat

A

cat - print file to standard output (terminal)

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

echo

A

echo - display a line of text

echo “hello hello” > tomat.txt : Write “hello hello” to tomat.txt

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

head

A

head - output the first part of file

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

tail

A

tail - output the last part of file

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

diff

A

diff - compare files line by line

17
Q

sort

A

sort - sort lines of text files

18
Q

wc

A

wc - newline, word and byte count for file

wc -w bar/gurka.txt : count the words in file gurka.txt

19
Q

sed

A

sed - stream editor

20
Q

grep

A

grep - find pattern in a file

21
Q

tr

A

tr - translate or delete characters

22
Q

man

A

man - manual