วันพฤหัสบดีที่ 20 มกราคม พ.ศ. 2554

คำสั่ง ls (list)

ใช้ในการดูข้อมูลในไดเรคเทอรี

รูปแบบการใช้งาน

ls -l => ดูข้อมูลในไดเรคเทอรีแบบละเอียด

ls -a => ดูข้อมูลในไดเรคเทอรีรวมทั้งไฟล์ที่มีการซ่อนไว้ด้วย
ตัวอย่างการใช้งาน

$ ls

Desktop

$ ls /home

cp lost+found

$ ls -l

total 4

drwxr-xr-x 4 cp cp 4096 May 15 21:56 Desktop

$ ls -a

. .beagle .gconf .gstreamer-0.10 .nautilus

.. Desktop .gconfd .gtkrc-1.2-gnome2 .redhat

.bash_logout .dmrc .gnome .ICEauthority .Trash

ไม่มีความคิดเห็น:

แสดงความคิดเห็น