terminal commands Flashcards

1
Q

changing directory

A

cd

cd /

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

listing all the files in the directory

A

ls
ls -l
ls –help

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

to check in which directory you are working right now

A

pwd

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

copying files along with an example

A

cp

cp /

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

command to move files along with example

what is the basic thing that moving a file does?

A

mv

mv /

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

Which command do you use to open files from the terminal?

Which is the alternative command you use to open the files in a different terminal?

A

cat

less

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

How do you print something onto the terminal?

How do you use the same command to put the entered data into a new file?

A

echo

echo “message” > filename.txt

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

Which command do you use to quickly create new files?

Can you create multiple files using the same? If so how?

A

touch
yes
touch file1 file2 file3 etc

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

which command do you use to remove files?

A

rm - remove

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

which command do you use to make and remove directories?

A

mkdir

rmdir

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

which command do you use to clean the terminal?

A

clear

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

which command do you use to filter out the information?

A

grep

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

which command do you use to get the manual of any command?

A

man

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

can you convert files to executable files from the terminal? If so how?

A

yes

chmod

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

Which command do you use to exit from the terminal?

A

exit

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