-
..3 023-4 ..3 025-9
Lab1 1. 2. 1. Linux
CentOS graphic mode text mode
text mode
(Setup File) OK
Skip
-
..3 023-4 ..3 025-9
CentOS Next
Next
1
2
-
..3 023-4 ..3 025-9
Keyboard Next
Partition Automatically partition partition Manually partition
partition ( Manually partition) Next
1
2
1
2
-
..3 023-4 ..3 025-9
Directories / = root directories, /swap
visual memory 2 512MB /swap 1024MB (1GB)
/ 2000MB (2GB) File system ext3 New Edit partition Mount point
directories / Size MB
/swap File System Type swap
1067MB (1GB) OK Next
1
3
4
4
3
2
1
2
-
..3 023-4 ..3 025-9
Directories / Directories /swap Next
Boot boot Next
1
2
-
..3 023-4 ..3 025-9
IP Address DHCP IP Address
Switch Server DHCP IP Switch IP Address manually IP Address IP
Address Switch IP Address Next
Firewall Security Next
1
2
3
4
-
..3 023-4 ..3 025-9
Default English
Thai Next
Time zone Next
1
2
1
2
-
..3 023-4 ..3 025-9
(Password) User root Next
Packages Next
1
2
1
2
-
..3 023-4 ..3 025-9
Next CentOS Hard disk partition
-
..3 023-4 ..3 025-9
CentOS
-
..3 023-4 ..3 025-9
Reboot
Login User=root, Password
-
..3 023-4 ..3 025-9 2. ls ,man ,cd ,pwd ,less ,cp ,rm ,tail , mv
,cat ,grep
ls (list) Directories ls [option] [file]
man (manual) parameter option man
-
..3 023-4 ..3 025-9
cd (Change Directories) Directories cd [path] pwd Directories
pwd
less spacebar less [file]
cp (copy) cp [source] [target] #cp test.txt /home/user1
-
..3 023-4 ..3 025-9
rm (remove) rm [option] [file]
tail tail [option] [file] n default = 10
cat cat [file]
mv (move) Directories mv [source] [destination]
-
..3 023-4 ..3 025-9
grep grep [option] grep -i ftp /etc/test "ftp"- /etc/test
-
..3 023-4 ..3 025-9
3. VI Text editor Text file
VI Text Editor Text VI Text editor vi filemane i (insert),
x,backspace,delete cursor ESC Shift + : wq (write quit) !
-
..3 023-4 ..3 025-9 Linux Option Parameter man (Manual) man Tab
1. Directory Directory
/ (root) /bin Binary
Linux /boot kernel Linux boot GRUB
(GRand Undified Boot loader) LILO /dev Device
tty(Terminal) hda(harddisk) /etc et cetera Configuration file
(System
administrator) Service /etc/init.d /home root /root /lib Library
/lost+found
(boot) fsck
/media mount cdrom, thumb drive /mnt /opt third party
software
install /usr/local
-
..3 023-4 ..3 025-9
/proc
/root home directory root /sbin
root sudo /tmp
boot /usr /var log E-mail
2. head tail head tail head n [filemane] > NewFile n
tail n [filemane] > NewFile n
-
..3 023-4 ..3 025-9 10 Test1 10 Test2 Test3 head -10 Test1 >
Test3 | tail 10 Test2 >> Test3