Simple commands Flashcards

1
Q

pwd

A

Print current directory

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

cd

A

change directory

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

cd ..

A

go to home directory

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

~/

A

Move deeper

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

tab tab

A

watch deeper

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

tab

A

autocomplete

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

ls

A

list files and folders

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

clear

A

clear terminal

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

mv

A

move

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

touch

A

create file

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

mkdir

A

create folder

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

/*

A

all filestail

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

-p

A

recursion

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

tree

A

show tree view

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

rm

A

remove file

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

-r

A

recursive deleting

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

-f

A

force

18
Q

cat

A

watch file inside

19
Q

head

A

first 10 lines of the file

20
Q

tail

A

last 10 lines of the file

21
Q

tail -f

A

Monitor file editing

22
Q

^C

A

invoke control back

23
Q

grep

A

find inside the file

24
Q

less

A

open visible part of file

25
Q

man

A

open manual

26
Q

which

A

find where command execution file lies

27
Q

echo

A

show on screen

28
Q

$

A

before variables

29
Q

env

A

Show current session vars

30
Q

>

A

writing into a file

31
Q
A

reading from the file

32
Q

sort

A

Sorting

33
Q

uniq

A

show unique only

34
Q

wc

A

word count (lines/words/symbols)

35
Q

!!

A

repeat the last command

36
Q

!555

A

repeat command number 555

37
Q

history

A

show history of commands

38
Q

~/.bash_history

A

Where the history lives

39
Q

alias ***=’command’

A

Set alias

40
Q

unalias ***

A

remove alias

41
Q

type ***

A

show what is it