List folder
ls -la /./etcChange Directory
cd – Used to change the current directory
cd folder-nameย้อนกลับไปที่ Directory ก่อนหน้า
cd ..Create a Folder
mkdir NewFolder-name
mkdir NewFolder-nameCreate a File
touch newfile.php
touch newfile.phpคำสั่ง touch command ใช้สำหรับสร้าง empty files – ไฟล์ใหม่ที่ไม่มีเนื้อหาอยู่ข้างใน หรือ update the timestamp ถ้าหากไฟล์ชื่อนั้นถูกสร้างไว้ก่อนแล้ว และจะไม่เปลี่ยนแปลงเนื้อหาข้างในไพล์
echo
Syntax of echo command
echo [option] [string]ตัวอย่าง
echo "Hello my VPS"-e เพื่อไม่ตีความ \ backslash
echo -e "Hello \nmy \nVPS"ผลลัพท์
Hello
my
VPSecho "Welcome to my VPS" > file-name.txtเขียนข้อความลงไปในไฟล์ชื่อ file-name.txt แต่ถ้ามีเนื้อหาเดิมอยู่แล้ว จะถูกเขียนทับ เนื้อหาเดิมจะหายไปทั้งหมด
nano index.htmlvim index.htmlSyntax of the cat command
cat [OPTION] [FILE]
cat index.html
