เตรียมของสอนอีกล๊ะ คราวนี้เรื่อง command-line โน๊ตไว้ลวกๆ เผื่อหาย ไว้ทำเป็นสไลด์แล้วจะเอามาแจก ที่แย่คือ ผมต้องทำอิงความเข้าใจของผมเอง ซึ่งบางทีมันอาจจะผิดก็ได้ แต่ในอีกแง่นึงแล้ว อิงตามความเข้าใจ คนเรียนก็น่าจะเข้าใจได้ง่ายกว่า ล่ะมั๊งนะ
Why shoud know command
Terminal structure
tty1
Command pattern
-
Path
. .. ~
File
file directory link hidden
Anotherone TA
Man --help
Basic Command
echo clear reset ls touch mkdir rm rmdir cd cp mv time date calendar pwd whoami
Admin User
adduser useradd addgroup remove user chmod chown
Manage text
head tail more less vim nano grep cat sed
Application & Utility
lsusb fdisk mount umount ttyrec ln finger tar zip alias script chroot uname history
Administrator tools
network config /etc/network/interfaces su sudo shutdown poweroff reboot init6 init0 ssh scp key cron foreground $HOME $PATH
Apt
config repository apt-get update search show install remove
Service
ps pstree top htop kill xkill init.d
MySQL Command
create show dump
Forward output
; && < > 0 1 2
Shell script
#!
[tab]
wine



