Midterm Flashcards
(108 cards)
Hard vs soft link
a file is only removed if it has no hard links/name.
If softlink is deleted, only theirs iremoved. Any softlinks to a deleted hardlink is a dangling reference
Permission order
User Group Other
Permission to directories
read- you can only run ls
write- you can create or delete files
execute- you can go to subdirectories
If you have w permission to a directory you can delete the file itself
how to change permissons
chmod (letter of group user or other)+(rw or x) fname
uniq
remove repeats
head
first lines of provided input
tail
last lines of provided input
sed
a strem editor to perform text transformation
ps
view processes
forground job
has control of terminal
backroung job
runs concurrently with the shell in backround
fg [num] bg [num]
kill %num
moves to foreground, bg, and kill
job
gives list of jobs and each job number
> filen vs»_space; filen vs < input
redirect, append, read from file
1 and 2 before >
stdout and stderr
*
zero+ chars
?
exactly one char
[x-y]
onechar x to y
[^oa]
not or or a
~
home`
~u
home directory of user
Scope
definind in script are lost in script unless used “source” to run script
parent and chil;d scop
child does not have access to parent shell unless with export
’’
literally