Linux Commands Flashcards

1
Q

what is the kill command?

A

kill / stops proccess

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

kill processID

A

kills the process listed

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

what does the command shutdown do?

A

shuts down the computer with a 1 minute timer.

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

shutdown - c

A

cancel shutdown

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

shutdown -r

A

shutdown computer and reboot

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

shutdown now

A

shutdown right now with no timer

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

apt-get

A

opens the apt repository

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

sudo apt-get update

A

update apt-get

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

sudo apt-get sudo install programname

A

install a program

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

sudo apt-get upgrade

A

how to upgrade all of the apps

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

sudo apt-get remove programname

A

how do you remove a program

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

ps

A

processes

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

ps aux

A

shows all processes with details for all users

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

chmod

A

change permissions

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

what order are file permissions listed?

A

user
group
other

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

what numbers are assigned to each of the types of permissions?

A
  1. r=4
  2. w=2
  3. x=1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

chmod 664 user

A

change file permissions rw user rw group r other for user

18
Q

chown

A

change ownership

19
Q

sudo chown timmy fred

A

change ownership from timmy to fred

20
Q

passwd

A

change password

21
Q

what 3 steps would you use to change a password?

A
  1. be logged into the account of the user whose password you want to change
  2. sudo passwd
  3. enter new password
22
Q

dd

A

bit by bit copy command

23
Q

dd if=/dev/sda of=/dev/sdb

A

copy everything from (source)=partition/device name (to) partition/device name

24
Q

dd if=/dev/sda2 of=~/backup.img

A

make a backup / image file

25
Q

dd if=/dev/zero of=/dev/sdb

A

just write zeros’s to this destination completely 0’s

26
Q

rm filename.ext

A

remove file

27
Q

rm *

A

remove everything

28
Q

cp

A

copy

29
Q

mv

A

move

30
Q

copy m* path

A

copy everything starting with m to path folder

31
Q

mkdir_name

A

make folder

32
Q

rmdir name

A

remove folder

33
Q

Linux equivalent to PowerShell

A

Bash Shell

34
Q

sudo

A

run admin

35
Q

ls

A

directory

36
Q

su

A

superuser 1 time use

37
Q

how you delineate switches in Linux

A

-

38
Q

man

A

manual command = help

39
Q

q

A

quit

40
Q

cd ~

A

home directory

41
Q

pwd

A

tells you the current directory

42
Q

tab

A

autocompletes