Linux commands Flashcards

(16 cards)

1
Q

Linux commands

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

man command= help

man=manual

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

ls=lists directories contents
-similar to dir command
blue is a directory
red is a archive file

for long output pipe through more
ls -l |
use q or control c to scroll

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

ls accomponied with -la gives more info on rights and permissions of each directory.

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

pwd
-print working directory
tells you where your at in the Linux terminal

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

mv
moves a file
or renames a file or directory

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

cp
copies a file
-duplicates files or directories

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

rm= removes files or directories
-deletes the files.

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

chmod = change mode of a file system object

-r=read -w=write x=execute

chmod764: Group members can edit the file.

chmod744: Group members can only read the file.

chmod a -w = removes the write permission for everyone on that file (owner, group, and others).

chmod u+x <filename> gives the owner permission to execute (run) the file.</filename>

  • at the beginning means a file
    d means its a directory
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

chown
change file owner and group

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

grep
find text in a file

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

find
-find a file by name or extension

.* defines a wildcard
d* defines any directory that starts with d

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

fsck
-file system check
checks the file systems for errors

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

mount
-associates a storage device with the file system
assogns it to a directory name

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

su/sudo
some commands require elevated rights

sudo-allows for a single command as super user

su- become the super user for that command prompt

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

apt
advanced packaging tool