Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
158 Cards in this Set
- Front
- Back
FHS
|
(Filesystem Hierarchy Standard ) effort to standardize the file system in Linux see Sheet "FHS"
|
|
mount point
|
the directory to which the device/file system is mounted
|
|
library
|
collection of methods
|
|
mount
|
The command to mount a device/file system
|
|
umount
|
the command to unmount a device/file system
|
|
fstab
|
fstab, or file systems table, is a file in /etc/ that holds a table of all disks and partitions and shows how each are initialized
|
|
mtab
|
shows which file systems are mounted
|
|
files
|
files
|
|
directories
|
special files that are used to organize other files on the filesystem
|
|
device files
|
a file used to identify hardware devices such as hard disks and serial ports.
|
|
links
|
like a windows shortcut
|
|
sockets
|
Named pipes connecting processes on two different computers; they can also be represented by files on the filesystem
|
|
FIFO
|
(First In First Out) - named pipes- temporary connections that send information from one command or process in memory to another; they are also represented by files on the filesystem. Named pipes are called FIFO files.
|
|
ls
|
lists the contents of a directory (dir in windows terminal)
|
|
cd
|
Navigate to directories/"Change Directory" "cd ~" will take you to home cd .. will take you back a directory level cd / will take you to root
|
|
pwd
|
print working directory
|
|
touch
|
touch will create a file if it doesn't exist, it will be empty, if you touch an existing file it will updated the modifed date/time to now
|
|
cat
|
Command to view a file in the terminal short for concatenate, lets you combine files
|
|
less
|
show contents of a file, show one screen at a time, spacebar to scroll one page forward
|
|
head
|
front/top of a file first 10 lines
|
|
tail
|
tail will show the tail end of a file, the last ten lines
|
|
mv
|
Command to move a file/rename a file
|
|
cp
|
copies stuff
|
|
mkdir
|
makes directories
|
|
rmdir
|
removes a directory that is empty, use rm -r on directories that contain data (-r means recursive)
|
|
rm
|
remove a file (used with 'sudo' it can be very dangerous)
|
|
ln
|
make shortcuts/"link" -s for symbolic/soft
|
|
KFind
|
a graphical utility that may be used to find files and directories on the filesystem.
|
|
find
|
will search whole drive Table 5-19
|
|
locate
|
uses a database to keep track of the files and directories faster than find, does query instead of search, database needs to be updated to find latest stuff
|
|
whereis
|
will search binaries and man pages of source code to find a specific command
|
|
which
|
"which searches all paths listed in the variable PATH for the specified command and returns the full path of the command - It is especially useful if several versions of a command exist in different directories and you want to know which version is executed when entered without specifying a path
|
|
type
|
what kind of command is being executed: shell built in or a binary
|
|
grep
|
narrows a command to only find matches ps -A will show all running processes where ps -A | grep firefox will only show firefox processes (group regular expression pattern)
|
|
regular expression
|
definition of a language, pattern matching, crazy looking and almost impossible to memorize syntaxing Table 5-21
|
|
ark
|
" The program ark lets you collect multiple files or even entire directories into an archive for:
|
|
tar
|
not compression TapeArchive - tar is the most commonly used tool for data backup
|
|
gzip
|
compress files with - file compression
|
|
gunzip
|
decompress files with - file compression
|
|
bzip2
|
compress files with - file compression
|
|
bunzip2
|
decompress file with - file compression
|
|
zcat
|
view compressed files
|
|
cpio
|
copy into or out of an archive (1 file at a time) - used to archive files and directories
|
|
rsync
|
used to copy files and directories to a different location on the local computer or to a remote computer across a network
|
|
dd
|
used to copy files to an alternate location using a particular format or method
|
|
mt
|
magnetic tape command - used to manage tape devices
|
|
cron
|
a system service that can be used to run command on a repetitive schedule
|
|
crontab
|
used to schedule commands using the cron service
|
|
shell
|
"a program that serves as an interface between the user and the operating system - The shell accepts a user’s entries, interprets them, converts them to system calls, and delivers system messages back to the user, making it a command interpreter
|
|
login shell
|
" started when a user logs in to system
|
|
non-login shells
|
started from within a running shell
|
|
history
|
used to view and recall previously executed commands
|
|
su
|
enter super user/root mode, "su" doesn't execute your login script, "su - "does
|
|
sux
|
allow to run graphical operations
|
|
id
|
PID - is used identify processes (process ID)
|
|
whoami
|
returns and displays the current user
|
|
exit
|
logs you out of the terminal or root, depending where you are
|
|
shell variable
|
VARIABLE="whatever you want", if you use "export" it becomes a global variable
|
|
environment variable
|
is a global variable
|
|
echo
|
simply prints out everything after the word "echo"
|
|
alias
|
used to create special alias variables
|
|
type
|
used to determine the type of program for a command. The type command can be used to identify aliases and their target commands
|
|
search patterns
|
special characters that may be used to match multiple filenames. also known as wildcards
|
|
piping
|
These are the standard input or output for processes, tasks, and functions. The usual Input is the keyboard and the usual output for normal and error is the screen.
|
|
redirection
|
"This is when you change what the input is and where the output goes
|
|
tee
|
used to copy data from Standard Input to both Standard Output and a specified file.
|
|
&&
|
And operator
|
|
||
|
or operator
|
|
vi
|
complex text/file editor
|
|
editors
|
vi, nano, gedit, emacs
|
|
sed
|
used to search for and manipulate text
|
|
awk
|
used to search for and display text using a variety of different formatting options
|
|
/etc/passwd
|
User database, all information about a user except for passwords
|
|
/etc/shadow
|
Encrypted passwords of the users
|
|
/etc/group
|
Database of user groups
|
|
pwconv
|
To convert passwords to and from /etc/shadow, you can us the pwconv command. This command will also resolve discrepancies where an entry exists in /etc/passwd but not in /etc/shadow
|
|
pwuconv
|
To remove /etc/shadow and convert your user accounts to /etc/passwd only, use the pwunconv command
|
|
useradd
|
add the user (it's useradd not adduser)
|
|
usermod
|
Modify the user
|
|
userdel
|
delete the user
|
|
groupadd
|
add a group
|
|
groupmod
|
Modify the group
|
|
groupdel
|
delete a group
|
|
ulimit
|
" Prevents individual users from using system resources excessively at expense of other users
|
|
chmod
|
change the file/directory permissions
|
|
chown
|
change owner, to change the user and group affiliation of a file
|
|
chgrp
|
change group
|
|
umask
|
to modify(restrict) default access mode settings
|
|
disk quota
|
limit amount of disk space that a user can use
|
|
quotacheck
|
(initialize the quota system) checks the partitions with the quota keywords and stores the determined values in the files aquota. user and aquota. group
|
|
edquota
|
to edit the current quota settings for a user or group (used to specify quota limits for users and groups
|
|
insserv
|
install a service at a particular level (deamon to run in a run level) -install service
|
|
file systems
|
ext2,3,4,fat16,fat32,ntfs journaling vs non-journaling (metadata)
|
|
fdisk
|
program to manage file systems
|
|
mkfs
|
create file system
|
|
fsck
|
file system check and repair
|
|
rpm
|
used to install, remove, and find information on RPM software packages
|
|
make
|
used to compile source code into programs according to a makefile
|
|
makefile
|
a file created by a configuration script that contains settings used when compiling source code
|
|
GRUB
|
(Grand Unified Boot Loader) a bootloader for linux/unix, the default boot manager in SLES
|
|
LILO
|
(Linux Loader) another bootloader for linux/unix, the traditional boot manager used on Linux systems
|
|
process
|
"is used to execute an instance of a program
|
|
daemon
|
background jobs or services
|
|
pid
|
the Process Identification Number, can be used to reference a specific process when wanting to "kill" it
|
|
job
|
shows what jobs are showing, if you use the & to run a process then they will be a job.
|
|
KDE System Guard
|
A graphical utility that may be used to view and control processes
|
|
ps
|
use to see running processes
|
|
top
|
displays processes ordered by CPU usage by default, it also displays general info about processes running
|
|
bg
|
" move a process to the backround
|
|
fg
|
brings process to the foreground
|
|
kill
|
ends a process
|
|
killall
|
ends processes by name
|
|
nice
|
assign a priority(only root can speed up the process)
|
|
runlevel
|
" this is the mode that the operating system will run at for example
|
|
init
|
the system is initialized by /sbin/init, it becomes the parent of all of the user processes. It is the first process that runs outside of the kernel
|
|
/etc/inittab
|
" this is the configuration file for /sbin/init
|
|
scripts
|
scripts are used to start services
|
|
cron
|
The system service that executes commands regularly in the future based on information in crontabs
|
|
at
|
used to schedule commands to run at a certain time in the future
|
|
process
|
"A program in execution
|
|
process elements
|
" Identifier
|
|
PCB
|
Process Control Block (PCB) contains the process elements, created and managed by the operating system, allows support for multiple processes
|
|
state?
|
according to the history, mathew deleted these
|
|
queue
|
a waiting list, enter at the rear and leave at the front
|
|
two state model
|
" Process may be in one of two states
|
|
five state model
|
"-Running: Ready to execute
|
|
context switch
|
every time the processor goes down to a different process queue
|
|
scheduling
|
Timeout (timeslice), Interrupts (invoke interrupt handler), I/O request (schedule a new process because i/o is slow, Completion (when completes, we schedule another job)
|
|
response time
|
keep at adequate level while getting an optimal amount of work done
|
|
throughput
|
try to get the most work done in a second or hour(unit time period)
|
|
efficiency
|
Keep the processor busy, if you spend money on a good processor you want it to use the most
|
|
priorities
|
The story of Solitaire and the nuclear processor, some processes are just more important so it is good to have an algorithm that handles this. The command "nice" lets you specify how to run a process
|
|
starvation
|
Not getting enough processing time or enough cycles, priority schemes solve this (well good one should solve this)
|
|
preemptive
|
" Currently running process may be interrupted and moves to the ready state by the OS.
|
|
FCFS
|
"First-Come-First-Served
|
|
round robin
|
executes next process in the cycle, just follows the queue and gives each process a time slice
|
|
SPN
|
Shortest Process Next - we select the shortest because getting the shortest one out of the way we get more room for larger processes
|
|
SRT
|
Shortest Remaining Time
|
|
HRRN
|
Highest Response Ratio Next -
|
|
feedback
|
|
|
fair-share
|
|
|
memory management
|
" Subdividing memory to accommadate multiple processes
|
|
relocation
|
"-Programmer does not know where the program will be placed in memory
|
|
protection
|
" if you have ten processes running, they should not affect each other, it should act as if that is the only processes running
|
|
sharing
|
" Allow several processes to access the same portion of memory
|
|
fixed partitioning
|
if all partitions are full, the OS can swap a process out of a partition, any process whose size is less than or equal to the partition size can be loaded into an available partition
|
|
internal fragmentation
|
|
|
dynamic partitioning
|
partitions are of variable length and number and are allocated to the size that the process needs
|
|
external fragmentation
|
|
|
placement algorithm
|
will load in memory to the closes amount of space. If the process needs 3MB and there are two 6MB partitions left and a 4MB partiotion, it will put it in the 4MB because it is closer to 3MB.
|
|
base register
|
Starting address for the process
|
|
bounds register
|
Ending location of the process
|
|
paging
|
We divide up all physical memory into frames
|
|
page
|
|
|
frame
|
sections within memory which load pages
|
|
page table
|
|
|
address resolution
|
the long binary math thing
|
|
Journaling file Systems
|
Keeps metadata (data about data) about data
|