• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
Download
 
ls ................. show directory, in alphabetical orderlogout ............. logs off systemmkdir .............. make a directoryrmdir .............. remove directory (rm -r to delete folders with files)rm ................. remove filescd ................. change current directoryman (command) ...... shows help on a specific commandtalk (user) ........ pages user for chat - (user) is a email addresswrite (user) ....... write a user on the local system (control-c to end)pico (filename) .... easy to use text editor to edit filespine ............... easy to use mailermore (file) ........ views a file, pausing every screenfulsz ................. send a file (to you) using zmodemrz ................. recieve a file (to the unix system) using zmodemtelnet (host) ...... connect to another Internet siteftp (host) ......... connects to a FTP sitearchie (filename) .. search the Archie database for a file on a FTP siteirc ................ connect to Internet Relay Chatlynx ............... a textual World Wide Web browsergopher ............. a Gopher database browsertin, trn ........... read Usenet newsgroupspasswd ............. change your passwordchfn ............... change your "Real Name" as seen on fingerchsh ............... change the shell you log intogrep ............... search for a string in a filetail ............... show the last few lines of a filewho ................ shows who is logged into the local systemw .................. shows who is logged on and what they're doingfinger (emailaddr).. shows more information about a userdf ................. shows disk space available on the systemdu ................. shows how much disk space is being used up by folderschmod .............. changes permissions on a filebc ................. a simple calculatormake ............... compiles source codegcc (file.c) ....... compiles C source into a file named 'a.out'gzip ............... best compression for UNIX fileszip ................ zip for IBM filestar ................ combines multiple files into one or vice-versalharc, lzh, lha .... un-arc'ers, may not be on your systemdos2unix (file) (new) - strips CR's out of dos text filesunix2dos (file) (new) - adds CR's to unix text files
 
ls
เปนคําสั ่งที ่ใชสําหรับแสดงแฟมขอมู
(
เชนเดียวกั
 
dir
ของ
DOS)
มากจากคําว
 
list
รูปแบบคําสั ่
 
ls [option] [file]option
ที ่มักใชกันใน
 
ls
คื
 -l
จะแสดงผลลัพธแบบ
 
Long Format
ซึ ่งจะแสดง
 
Permission
ของแฟมดวย
 -a
จะแสดงแฟมขอมูลทั ้งหมด
 -F
จะแสดง
/
หลั
 
Directory
และ
*
หลังแฟมขอมูลที ่
 
execute
ได
 
ตัวอยางการใชงาน
 ls -lls -alls -Fadduser
คําสั ่งเพิ ่
 
User
ใหกับระบบ
 
Unix,Linux
รูบแบบการใชงาน
 
adduser -g (group) -d (Directory) (User)
ตัวอยาง
 
adduser -g root -d /home/user1 user
สราง
 
User
ชื ่
 
Login
คื
 
user1
เปนสมาชิกในกลุ 
 
rootuseradd
คําสั ่งเพิ ่
 
User
ใหกับระบบ
 
Unix,Linux (
ใชเหมือนกับคําสั ่
 
adduser)
รูบแบบการใชงาน
 
useradd -g (group) -d (Directory) (User)
ตัวอยาง
 
useradd -g root -d /home/user1 user
สราง
 
User
ชื ่
 
Login
คื
 
user1
เปนสมาชิกในกลุ 
 
rootuserdel
คําสั ่งลบ
 
User
ออกจากระบบ
 
Unix,Linux
รูบแบบการใชงาน
 
userdel [option] (Username)
ตัวอยาง
 
userdel -r root user1
ลบ
 
User
ชื ่
 
Login
คื
 
User1
และ
-
r
คือใหลบ
 
Home Directory
ของ
 
User1
ดวย
 passwd
คําสั ่งกําหนดและแกไขรหัสผานของ
 
User
ของระบบ
 
Unix,Linux
รูบแบบการใชงาน
 
passwd [Username]
ตัวอยาง
 
passwd user1 (
กําหนดรหัสผานให
 
User1
ถาไมพิมพ
 
ชื ่
 
User
ระบบ
Unix
จะหมายความวแกไขรหัสผานของคนที ่
Login
เขามา
)
 alias
คําสั ่งกําหนดคําสั ่งยอของระบบ
 
Unix,Linux (
คลายกับคําสั ่
 
SET
ใน
DOS
แตสามารถใชเปฝนคําสั ่
 
RUN
ได
)
 
รูบแบบการใชงาน
 
alias [
ชื ่อใหม
=
ขอความ
]
 
ตัวอยาง
 
alias copy=cp
กําหนดใหพิมพ
 
copy
แทนคําสั ่
 
cp
ได
 
 
 bash
คําสั ่งเรียกใช
 
Bourne again shell
ของระบบ
 
Unix,Linux
รูบแบบการใชงาน
 
bash
ตัวอยาง
 
bash [Enter] (
เรียกใช
 
Bourne again shell)bc
คําสั ่งเรียกใชโปรแกรมคํานวณเลขของระบบ
 
Unix,Linux
รูบแบบการใชงาน
 
bc [-lwsqv] [option] [file]
ตัวอยาง
 
bc [Enter] 1+2 [Enter] 1^2 [Enter] a=3 [Enter] b=4 [Enter] a*b [Enter]x=2;y=5;x+y[Enter] [Ctrl-d]
เพื ่อออก
 
หมายเหตุ
:
คําสั ่งนี ้จะใชไดตอง
Install Packet
ลงไปกอน
 cp
เปนคําสั ่งที ่ใชสําหรับสําเนาแฟมขอมู
(
เชนเดียวกั
copy
ของ
DOS)
มาจากคําวา
 
copy
รูปแบบคําสั ่
 
cp source target
ตัวอยางการใชงาน
 
#cp test.txt /home/user1cal
คําสั ่งแสดงปฏิทินของระบบ
 
Unix,Linux
รูบแบบการใชงาน
 
cal
ตัวอยาง
 
cal [Enter](
สั ่งใหระบบแสดง
 
ปฏิทินเดือน
 
ปจจุบั
)
 cal -y [Enter](
สั ่งใหระบบแสดง
 
ปฏิทินป
 
ปจจุบั
)
 cat
คําสั ่งแสดงขอความใน
File
ของระบบ
 
Unix,Linux (
คลายกับคําสั ่
Type
ของ
DOS)
รูบแบบการใชงาน
 
cat
ตัวอยาง
 
cat /home/user1 | more
อานขอมูลจากไฟล
/
home/user1
ถายาวเกินหนาใหหยุดทีละหนาจอ
 C Compiler
คําสั ่
Compile
ภาษา
C
ของระบบ
 
Unix,Linux (
คลายกับคําสั ่
Type
ของ
DOS)
รูบแบบการใชงาน
 
cc [filename]
ตัวอยาง
 
cc /home/user1/industry.c
จะสั ่งใหระบบ
Compile
ภาษา
C
ไฟลชื ่
 
industry.c
ที ่
 
Directory /home/user1cd
คําสั ่
Change Directory
ของระบบ
 
Unix,Linux (
คลายกับคําสั ่
CD
ของ
DOS)
รูบแบบการใชงาน
 
cd [directory]
ตัวอยาง
 
cd /etc [Enter]
ไป
Directory etccd ..[Enter]
ยายไป
Directory
อี
1
ชั ้
 
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
12 / 18 / 2010This doucment made it onto the Rising List!
You must be to leave a comment.
Submit
Characters: ...