command line Flashcards

1
Q

like dir in dos

A

LS

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

for going inside a folder

A

cd

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

shows where are you new

A

pwd

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

for making a directory

A

mkdir (name)

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

for removing a directory rmdir (name)

A

rmdir (name)

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

for editing a text

A

nano

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

for view inside your file

A

cat

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

to move the file

A

mv

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

to copy the file

A

cp

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

for making a new file i.e. touch name.txt

A

touch name.txt

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

for sorting inside your text file

A

sort name.txt

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

for reverse sorting

A

sort -r *.txt

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

for sort and make copy from your file

A

sort *.txt >newname.txt

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

for sorting and reverse the number

A

sort -n sort -n - r

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

for sorting and reverse the month

A

sort -m sort -m - r

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

for shotdown

A

sudo halt

17
Q

for restart

A

sudo reboot

18
Q

for search in your memory

A

find

19
Q

for search inside a file

A

grep i.e. grep name address

20
Q

for find ip

A

ifconfig

21
Q

what is the rwx and how you can change it ?

A

r is 4 - w is 2 - x is 1 sum of theme is 7

for change it chmod ### file or folder name

22
Q

LS with detail

A

ls -l