Linux Commands Flashcards

1
Q

cd

A

change directory

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

ls

A

lists contents of a directory

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

ls -la

A

lists all files and folders in a directory

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

.

A

present working directory

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

..

A

directory above present working directory

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

ls -l

A

lists files and folders excluding hidden

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

-rw-r…

A

file

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

drw-r…

A

directory

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

mkdir

A

creates folder or directory

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

../..

A

up twice

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

dark blue

A

folders and directories

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

light blue

A

links

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

white

A

file

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

green

A

sticky directory

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

mv

A

move (mv source destination)

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

–help

A

lists how to use any command

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

rmdir

A

removes file/directory

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

cp

A

copy (cp source destination)

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

rm

A

remove

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

-f

A

force

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

rm -rf

A

remove +recursive + force (removes directory and any files within it)

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

b*

A

all directories/files starting with b

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

be?

A

all directories/files starting with be and having a letter in the ? place

24
Q

df

A

displays info about disks

25
Q

du

A

disk usage

26
Q

du ~/downloads

A

disk usage of items in downloads directory

27
Q

vi

A

text file editor (no instructions, more powerful) (modal editor)

27
Q

nano

A

allows you to edit contents of text files (gives instructions)

28
Q

vim

A

VI improved

29
Q

pico

A

text editor similar to nano

30
Q

cat

A

shows file and contents of that file

31
Q

>

A

redirector (overrites)

32
Q

> >

A

append symbol

33
Q

find

A

walks through a file hierarchy to find a file with a particular name (search for a file)

34
Q

grep

A

globally searches for a regular expression and displays it to the screen (search for content within a file)

35
Q

su

A

substitute user (switches between users)

36
Q

sudo

A

super user do (elevates permissions for a single command)

37
Q

useradd

A

adds new user

38
Q

usermod

A

modifies users

39
Q

userdel

A

deletes a user

40
Q

passwd

A

password options

41
Q

groupadd

A

creates groups

42
Q

chmod

A

changes permissions on a file\

43
Q

r

A

read (value of 4)

44
Q

w

A

write (value of 2)

45
Q

x

A

execute (value of 1)

46
Q

chown

A

changes file ownership

47
Q

chgrp

A

changes group file ownership

48
Q

ps

A

summary of current running processes

49
Q

top

A

processes with assorted memory or based on user

50
Q

ip

A

information about network

51
Q

ping

A

tests deliverability from client to destination (indefinite)

52
Q

traceroute

A

traces path packets take

53
Q

dig

A

information about a domain name

54
Q
A