1. คําสั่ง ลินุกซ์ (linux) (ยังปรับแต่งไม่เสร็จ)
1. unzip -C xxx.zip -d /yyyy
EXAMPLES
The simplest example:
zip stuff *
creates the archive stuff.zip (assuming it does not exist) and puts all the files in the current
directory in it, in
compressed form (the .zip suffix is added automatically, unless that archive name given contains
a dot already; this
allows the explicit specification of other suffixes).
Because of the way the shell does filename substitution, files starting with "." are not included; to
include these as
well:
zip stuff .* *
Even this will not include any subdirectories from the current directory.
To zip up an entire directory, the command:
zip -r foo foo
creates the archive foo.zip, containing all the files and directories in the directory foo that is
contained within the
current directory.
You may want to make a zip archive that contains the files in foo, without recording the directory
name, foo. You can
use the -j option to leave off the paths, as in:
zip -j foo foo/*
If you are short on disk space, you might not have enough room to hold both the original directory
and the corresponding
compressed zip archive. In this case, you can create the archive in steps using the -m option. If
foo contains the
subdirectories tom, dick, and harry, you can:
zip -rm foo foo/tom
zip -rm foo foo/dick
zip -rm foo foo/harry
where the first command creates foo.zip, and the next two add to it. At the completion of
each zip command, the last
2. telnet [ชื่อ server]
ตัวอย่าง ขั้นตอนสําหรับติดต่อ server ชื่อ unix.kmitl.ac.th
1. คลิกเมาส์เลือก Start, Run…..
2. พิมพ์คําสั่ง telnet unix.kmitl.ac.th
3. ใส่ชื่อบัญชีผู้ใช้ (user name) หลัง login:
5. ใส่รหัสผ่าน (password) หลัง password:
6. เมื่อ connect ได้ จอภาพแสดงข้อความแนะนําผู้ใช้ดังรูป
3. คําสั่งเลิกติดต่อ logout
ตัวอย่าง
$ Iogout
2. 4. คําสั่งเปลี่ยนรหัสผ่าน (password)
การใช้งาน
passwd
ตัวอย่างการใช้
$ passwd
ให้ใส่รหัสผ่านที่ใช้อยู่ในขณะนั้น
จะมีข้อความแจ้งว่า ‘New password:’ ให้ใส่รหัสผ่านอันใหม่ที่จะใช้แทนอันเดิม
จะมีข้อความแจ้งว่า ‘Re-enter new password:’ ระบบจะเตือนให้ใส่อีกครั้ง ต้องเหมือนกับที่ใส่ในช่อง
New
ถ้าใส่ทั้ง 2 ครั้งเหมือนกันและถูกต้องตามกฎการตั้งรหัสผ่านจะปรากฏเครื่องหมาย $
ถ้าแสดงเป็นอย่างอื่นเช่น ‘Password must contain at least two alphabetic characters and
at least one numeric or special character.’ หรือ ‘New passwords must differ from the old by at
least three characters.’ และหรือ ‘Each password must differ from the user's login name and any
reverse or circular shift of that login name.’ แสดงว่าทําไม่ถูกต้องอยู่ให้เริ่มใหม่จากข้อ 2
5. คําสั่งตรวจสอบการใช้เนื้อที่
การใช้งาน
quota [-v] [username]
ตัวอย่าง
$ quota -v
ข้อมูลแต่ละคอลัมน์มีความหมายดังนี้
Filesystem คือ ชื่อไดเรกทอรีที่ถูกกําหนด quota
Usage คือ จํานวนเนื้อที่ที่ใช้ไป มีหน่วยเป็น Kbytes
quota คือ จํานวนเนื้อที่ทีระบบจะเริ่มเตือนในช่อง timeleft มีหน่วยเป็น Kbytes
limit คือ จํานวนเนื้อที่ที่อนุญาต มีหน่วยเป็น Kbytes
timeleft คือ จํานวนเวลาที่เหลืออยู่ก่อนจะ loginเข้าไม่ได้ มีหน่วยเป็นวันเช่น 7 days
files คือ จํานวนไฟล์ที่ใช้ไป
quota คือ จํานวนไฟล์ที่ที่ระบบจะเริ่มเตือนในช่อง timeleft
timeleft คือ จํานวนไฟล์ที่อนุญาต
timeleft คือ จํานวนเวลาที่เหลืออยู่ก่อนจะ login เข้าไม่ได้มีหน่วยเป็น วัน เช่น 7 days
6. คําสั่งตรวจสอบการเข้าใช้งานที่ผ่านมา
การใช้งาน last [username]
ตัวอย่าง
last | ชื่อบัญชีผู้ใช้ l more
$last knorasa | more
หมายถึงดูการใช้งานของบัญชีผู้ใช้ชื่อ knorasa
แต่ละคอลัมน์ มีความหมายดังนี้
คอลัมน์ 1 คือ ชื่อบัญชีผู้ใช้
คอลัมน์ 2 คือ หมายเลข terminal ที่เครื่อง UNIX server ติดต่อกับ PC
คอลัมน์ 3 คือ Address ของ PC ที่ telnet ไปยัง server