Sie sind auf Seite 1von 3

linux13

pcie slot for graphic card


port of hard drive
sata
ide =older pata
scsi
sas
drivers bits of softwares that tell linux how to communicate with devices

linux 14

data locations
/etc -config files
/lib - linked library by binaries in /bin and /usr/bin
/usr/lib
/var/log -log files

cd /lib
cd /usr/lib
cd /etc
cd /var/log
ps
ps -aux
ps -aux | grep cups

free show uyo blocks of memory


-tom

linux15
the network
/etc/resolv.comf

ifconfig
route
dig
ping

linux 16

3 types of users
standard
root
system- service account ing windows

tools
id info about a user
w what users logged in are doing
who who is logged in
sudo do command with root privileges
/etc/passwd for everyuser stored
/etc/group

practce
who
w

id spongebob 6min
ls /home/
cat /etc/passwd
cat /etc/group

linux 17 user and group


useraddgroupadd
id
last
passwd
/etc/passwd user info
/etc/shadow contain user passwords
/etc/groupgroup info
usermod change aspects of existing user
userdel
`groupdel

sudo adduser patrick


passwd pass
pass
hit enter
ls/home/
id patrick

sudo groupadd pineapple


cat /etc/group

sudo cat /etc/shadow


sudo passwd patrick
passwd: class
last shows last login

ssh patrick@localhost

userdel --help

sudo userdel -r spongebob


cat /etc/group
sudo usermod -a -G pineapple patrci
id patrick

sudo usermod -a -G sudo patrick


id patrick
sudo userdel -r patrick
sudo groupdel pineapplecat
cat /etc/group

linux19
r read
w write
x= execute
d = directory/tpe
x can cd into if it is directory

d rwx rwx rwx


type user group other
- = regular file
-rwx rwx rwx
421 421 421
7 7 7
- r-x -w- r w-
4-1 -2- 4 2-
= 5 2 6
chmod ugo -w file
or chmod 555 file

sudo chown spowers.pirate gold.txt

italki.com lang-8 easy-to-read English articles,


and exercises to improve your skills in every domain

Das könnte Ihnen auch gefallen