commands Flashcards

(59 cards)

1
Q

/

A

separation of directories

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

\

A

topmost directories

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

pwd

A

present work directory(where you currently in)

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

cd

A

change directories

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

cd ..

A

moving up in hierarchy

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

ls

A

whats inside in this current directory(if its blue it means directory not a file)

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

-l

A

long output(basically more details of those files)

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

-l ..

A

upper directory in -l

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

ls -a

A

all files

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

ls -al

A

all long files

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

mkdir

A

make directory

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

tab(the button)

A

used for autocomplete

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

rmdir

A

remove directory

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

arrows(on the keyboard)

A

used for scroll thru the previous commands

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

(letter)*

A

removes everything what starts with the letter

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

touch

A

creates an empty file

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

nanao

A

text editor

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

^(letter)

^symbol means

A

ctrl when you see for example ^k that means ctrl+k

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

man (the command)

A

manual guide for the command

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

cat (the file name)

A

prints off the content of the file on the screen

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

head (the file)

A

shows the first 10 lines of the file

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

tail (the file)

A

shows the last 10 lines of the file

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

cp (the file name that you wanna copy to somewhere) (the new place for the file)

A

copy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
mv (the file name) (the new file name)
mv also used for change file names
26
locate (any file name)
will locate the file from the database
27
find (any file name)
wil find the file from the root
28
which (any file name)
used for find program files
29
grep "(word or letter)" (the file name where you search the word or letter)
grep can specify regular expressions and other special character to match different patterns
30
grep -v "(the word or letter)" (the file name)
inverted search meaning all the words or letters that dont match
31
>
redirect the output
32
lR
ls recursive
33
ls -lR /
show the content of that directory and its sub directories and its sub directories and so on
34
stdin
input to a command
35
stdout
normal (expected) output by a command
36
stderr
error output by a command
37
when $ command > file 1. stdin 2. stdout 3. stderr
1. types into the terminal 2. written to a file 3. output to the terminal
38
when $ command &> file 1. stdin 2. stdout 3. stderr
1. typed into the terminal 2. written to a file 3. written to a file
39
whoami
shows the current user
40
echo
printing statement
41
>>
output to be appended
42
ifconfig
show a lot of information about your computer (ip address)
43
|
(this is a vertical bar) shift back backslash (you can write multiple commands in one line)
44
ifconfig | grep "inet addr"
to search just for the ip
45
1. cut 2. -d "" 3: -f (number)
1. takes a string of text and split it into chucks 2. delimiter 3. chuck called field (fields separated by the delimiter character)
46
ctrl+c
stops/deletes any proccess
47
ctrl+z
pause any process
48
jobs
shows the stopped commands
49
fg (the paused job's number) | fg means foreground
resume the process
50
bg | background
run the proccess in the background (you cant see in the terminal)
51
ls -lh (the file name)
shows how big the file is
52
ps
process status (used for find the process id)
53
ps -e | less
shows every process on the OS
54
top
shows the top proccesses, refreshing every second(similar to task manager)
55
su (user name)
switching user
56
sudo
superuser do(basically if you dont have access to do something you will have with sudo)
57
/etc/(command exp:passwd)
keep track all the configuration files
58
locate (mode exp:--all) -c (file)
shows a number of how many files are there
59
vim
used for editing any kind of text and is especially suited for editing computer programs