คำสั่ง (Command)

คำสั่ง (Command)

55

คำสั่งน่ารู้ในระบบปฏิบัติการ Unix หรือ Linux

man แสดงคำอธิบายคำสั่ง เพื่อช่วยในการนำไปใช้

ls แสดงรายชื่อแฟ้มใน directory ปัจจุบัน

id แสดงชื่อผู้ใช้คนปัจจุบัน

who แสดงชื่อผู้ใช้ที่กำลัง online อยู่

pwd แสดงชื่อ directory ปัจจุบัน

date แสดงวันที่ และเวลาปัจจุบัน

banner (คำสั่งนี้ใช้งานไม่ได้ใน RedHat 9)

ps แสดงกระบวนการที่กำลังทำงานอยู่

kill ยกเลิกกระบวนการที่กำลังทำงานอยู่

mail ส่งอีเมล

sort จัดเรียงข้อมูลใน text file

clear ล้างจอภาพ

more แสดงข้อมูลจาก text file แบบแยกหน้า

passwd เปลี่ยนรหัสผ่าน

cal แสดงปฏิทิน

echo แสดงตัวอักษร

talk สนทนากับผู้ใช้ในระบบ

grep ค้นหาตัวอักษรจาก text file

Process handling commands from http://www.linuxforum.com/linux/sect_04_05.html

at Queue jobs for later execution.

atq Lists the user’s pending jobs.

atrm Deletes jobs, determined by their job number.

batch Executes commands when system load level permits.

crontab Maintain crontab files for individual users.

halt Stop the system.

init runlevel Process control initialization.

jobs Lists currently executing jobs.

kill Terminate a process.

mesg Control write access to your terminal.

netstat Display network connections, routing tables, interface statistics,

masquerade connections and multicast memberships.

nice Run a program with modified scheduling priority.

ps Report process status.

pstree Display a tree of processes.

reboot Stop the system.

renice Alter priority of running processes.

shutdown Bring the system down.

sleep Delay for a specified time.

time Time a command or report resource usage.

top Display top CPU processes.

uptime Show how long the system has been running.

vmstat Report virtual memory statistics.

w Show who is logged on and what they are doing.

wall Send a message to everybody’s terminals.

who Show who is logged on.

write Send a message to another user.

Leave a comment