Linux Command (ต่อ)

คำสั่ง command ที่ควรรู้!

คำสั่ง เปลี่ยนเจ้าของ file หรือ directory : $ chown [option] <owner>:<group> <file>

$ chmod 777 helloworld.txt

คำสั่ง เปลี่ยนเจ้าของ file หรือ directory : $ chown [option] <owner>:<group> <file หรือ directory>

// เปลี่ยนเจ้าของ file
$ chown turterdev helloworld.txt

// เปลี่ยนเจ้าของ directory และ group
$ chown -R turterdev:turterdev project

คำสั่ง Zip file : $ tar [option] <ชื่อ file.tar.gz> <directory>

$ tar cvfz project.tar.gz project/

คำสั่ง unzip file : $ tar [option] <file.tar.gz>

$ tar -xf archive.tar.gz

Last updated