Welcome To My Blog

Tuesday, December 28, 2010

Summary #1 - Network and System Administration(NSA)

Since i'm taking 2 subjects only for this semester, i've decided to post a summary of what i've learnt in class. It will be easier for me to revise back before quizzes or exams. Hopefully it works coz when i was taking PMIT (Project Management in IT) during short semester, i always updated my blog (onestepclosertomygoal.blogspot.com) after each topic we learned. So.....I'm just hoping for the best since this is my final semester....I'll try my best. Here is the first summary.

UNIX
-multi-user, multi-tasking OS
-can have many users logged in simultaneously, each running many programs
-kernel-keep each process & user separate, regulate access to sys hardware (cpu,memory, disk, i/o)

Linux
-free Unix-type OS
-created by Linus Trovalds
-developed under GNU GPL
-distros(mandrake,redhat,fedora,suse,debian,ubuntu)

structure of standard directories in Unix/Linux
/bin-tools n other program
/dev-hardware devices
/etc-miscellaneous sys config, starup file,etc
/home-home dir
/lib-library files
/proc-current sys process
/root-superusers home dir
/sbin-sys admin tools/sys binaries
/tmp-temporary files
/usr-user tools n apps

INODE(index Node) table-maintain files and dir info(file-metadat,file permission, UID,GID,size,time stamps,etc)

Access Permission
file,dir apps permission:
permission  action      chmod option
read           view        r/4
write          edit         w/2
execute      execute    x/1

category of users:
u-owner/user
g-group
o-others/all users

view permission
ls -l

change to directory
cd directory1


present working directory
pwd


move to superior directory
cd..


absolute path
cd /home


return to user home directory
cd


make directory
mkdir directory1


remove directory(only if empty)
rmdir directory1


remove directory(everything)
rm -R directory1


copy file(must be in same directory otherwise path must be given)
cp file1 file2


move/rename file(must be in same directory otherwise path must be given)
mv file1 file2


remove file
rm file1


use wildcard(all file begin with h and end with c will be removed)
rm h*c


rm * (remove all file in working directory)


change ownership of file/dir permission
chown fanilze directory1
chown fanilze file1


change group of file/dir permission
chgrp group1 directory1
chgrp group1 file1


change dir/file permission
chmod ### file/dir


eg:
chmod 700 dir1 (only owner will have read, write, execute permission)
chmod ugo+rwx file1 (add owner, group, others permission read, write, execute)


summary pon panjang berjela...hahaha....huhuhu....janji paham....

Ai no ōku,
fanilzekazuyama

No comments: