3.0 Master Set

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/183

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:32 PM on 9/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

184 Terms

1
New cards

linux has super user account called

root

2
New cards

linux is

  • case sensitive, file ABC is not the same as file abc


3
New cards

when creating files avoid using

spaces

4
New cards

linux kernel is

Not an operating system, it is a small software that takes commands from users and passes them to system hardware

5
New cards

2 types of access

console

  • remote


6
New cards

command to remotely access linux machine

  • ssh 192.168.1.1


7
New cards

command to remote into linux machine with username

  • ssh -l <username> <ip-address>


8
New cards

get ip address

ip addr

9
New cards

command prompt order

username - hostname - prompt symbol

10
New cards

get prompt back

ctrl + c

11
New cards

get username

whoami

12
New cards

get hostname

hostname

13
New cards

there are 3 types of root on a linux system

  • root account → has access to all commands

  • / → root directory

  • /root → root home directory


14
New cards

change password

passwd userid

15
New cards

linux file systems

ext3, ext4, xfs

16
New cards

go to a different directory

cd

17
New cards

directory where log files are located

/var

18
New cards

directory where commands are located

/sbin

19
New cards

directory that contains files used by bootloader

/boot

20
New cards

directory that contains root user home directory

/root

21
New cards

directory that contains configuration files

/etc

22
New cards

directory that contains system devices

/dev

23
New cards

directory that contains everyday user commands

/usr/bin

24
New cards

directory that contains system file commands

/usr/sbin

25
New cards

directory that contains optional add ons

/opt

26
New cards

directory that contains running processes used only in memory

/proc

27
New cards

directory that contains programming library files

/usr/lib

28
New cards

directory that contains temporary files

/tmp

29
New cards

directory that contains system logs

/var

30
New cards

switch directories

cd

31
New cards

find which directory you are currrently in

pwd

32
New cards

list the contents of a file

ls <filename>

33
New cards

c: drive (windows) is the same as what in linux

/

34
New cards

become root

su -

35
New cards

wipe the screen

clear

36
New cards

when doing ls… anything that starts with - is a

file

37
New cards

when doing ls… anything that starts with d is a

directory

38
New cards

go one directory back

cd ..

39
New cards

when doing ls… anything that starts with l is a

link

40
New cards

an absolute path always begins with

/

41
New cards

command to create a file

touch <filename>

42
New cards

copy an existing file

cp <filename> <new-file>

43
New cards

create a directory

mkdir

44
New cards

check that file/dir was created

ls -l

45
New cards

list files by when it was last modified

ls -ltr

46
New cards

ls -ltr sorts by

oldest at top, newest at bottom

47
New cards

create vi file

  • vi <filename>

  • :wq!


48
New cards

create multiple files

touch file1 file2 file3

49
New cards

copy a directory

cp -R <source> <destination>

50
New cards

two main commands used to search for files

  • find

    • locate


51
New cards

use the find command to search for a file

find . -name “<name">”

52
New cards

if locate command doesn’t work

updatedb

53
New cards

use locate command to search for files

locate <filename>

54
New cards

difference between find . and find /

  • . means current directory

  • / means start the search from root


55
New cards

use find command to search from current directory

find . -name “<filename>”

56
New cards

use find command to search from root

find / -name “<name>”

57
New cards

which is faster locate or find

locate

58
New cards

to run updatedb you need to be

root or use sudo

59
New cards

*

represents anything

60
New cards

?

represents a single character

61
New cards

[ ]

represents a range of character

62
New cards

use a wildcard to remove EVERY file that starts with abc

rm abc*

63
New cards

remove a directory

rm -r <dir.name>

64
New cards

create 9 files using a wildcard

touch abcd{1..9}

65
New cards

remove everything that ends with xyz

rm *xyz

66
New cards

file symbol -

regular file

67
New cards

file symbol d

directory

68
New cards

file symbol l

link

69
New cards

file symbol c

special file or device file

70
New cards

file symbol s

socket

71
New cards

file symbol p

named pipe

72
New cards

file symbol b

blocked device

73
New cards

in windows a directory is called a

folder

74
New cards

2 types of links

soft links and hard links

75
New cards

if you attach a keyboard to your system the linux OS

creates a c file

76
New cards

socket files are used for

network communication between processes

77
New cards

named pipe files

FIFO (first in, first out)

78
New cards
79
New cards

inode

pointer or number on a file

80
New cards

soft link

link that when created will be removed if file is removed or renamed

81
New cards

how do links work

they point towards inode

82
New cards

hard link

deleting or renaming source file will not remove link

83
New cards

create a hardlink

ln <source> <destination>

84
New cards

create a soft link

ln -s <source> <dest>

85
New cards

write to a file

echo “<text”>

86
New cards

read what you wrote to the file

cat <filename>

87
New cards

find inode of file

ls -li <file>

88
New cards

linux has a super user called

root

89
New cards

linux is

case-sensitive

90
New cards

avoid using

spaces

91
New cards

is linux kernel an OS

FUCK NO

92
New cards

2 types of access

  • console

  • remote


93
New cards

remote access linux to linux

ssh 192.168.1.1

94
New cards

get your prompt back

ctrl + c

95
New cards

how to open terminal

right click desktop

96
New cards

Get the username

whoami

97
New cards

find the name of your machine

hostname

98
New cards

go to root directory

cd /

99
New cards

root home directory

/root

100
New cards

change a password

passwd userid