Top Banner
นายศราวุธ กันทะวงค วศบ.คพ.3 023-4 นายศุภรักษ สมศรี วศบ.คพ.3 025-9 Lab1 ติดตั้งระบบปฏิบัติการลินุกซและคําสั่งพื้นฐาน จุดประสงค 1. สามารถติดตั้งระบบปฏิบัติการลินุกซได 2. สามารถใชงานคําสั่งพื้นฐานของลินุกซได ขั้นตอนการทําลอง 1. ทําการติดตั้งระบบปฏิบัติการ Linux พรอมทั้งบันทึกผลทุกขั้นตอน เมื่อเริ่มตนการติดตั้ง CentOS ระบบจะมีการติดตั้งที่เปนแบบ graphic mode และ text mode ในสวนทีเปน text mode จะใชติดตั้งในกรณีทีระบบจะถามวาจะทําการตรวจสอบไฟลที่ใชในการติดตั้งหรือไม (Setup File) ถากด OK ระบบจะทํา การตรวจสอบไฟลที่ใชติดตั้งทั้งหมดกอนเริ่มทําการติดตั้ง ถาไมตองการใหเลือก Skip ระบบจะทําการติดตั้งโดย ไมตรวจสอบไฟลที่ใชติดตั้ง
19

Lab 1 ติดตั้งระบบปฏิบัติการลินุกซ์และคำสั่งพื้นฐาน (CentOS)

Sep 27, 2015

Download

Documents

Know2Pro

Lab 1 ติดตั้งระบบปฏิบัติการลินุกซ์และคำสั่งพื้นฐาน (CentOS)
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • ..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