% pwd
/postgrad/postgrad/59502/sci-jjh/cp1300/test
% ls -la
total 17
drwx------ 2 sci-jjh system 8192 Jul 30 15:40 .
drwx------ 14 sci-jjh system 8192 Jul 30 15:40 ..
-rw------- 1 sci-jjh system 73 Jul 30 15:40 hello.cc
% chmod o+r hello.cc
% ls -la
total 17
drwx------ 2 sci-jjh system 8192 Jul 30 15:40 .
drwx------ 14 sci-jjh system 8192 Jul 30 15:40 ..
-rw----r-- 1 sci-jjh system 73 Jul 30 15:40 hello.cc
% chmod a+w hello.cc
% ls -la
total 17
drwx------ 2 sci-jjh system 8192 Jul 30 15:40 .
drwx------ 14 sci-jjh system 8192 Jul 30 15:40 ..
-rw--w-rw- 1 sci-jjh system 73 Jul 30 15:40 hello.cc
% chmod go-rw hello.cc
% ls -la
total 17
drwx------ 2 sci-jjh system 8192 Jul 30 15:40 .
drwx------ 14 sci-jjh system 8192 Jul 30 15:40 ..
-rw------- 1 sci-jjh system 73 Jul 30 15:40 hello.cc
% mkdir backup
|
% ls -la
total 25
drwx------ 3 sci-jjh system 8192 Jul 30 16:16 .
drwx------ 14 sci-jjh system 8192 Jul 30 15:40 ..
drwx------ 2 sci-jjh system 8192 Jul 30 16:16 backup
-rw------- 1 sci-jjh system 73 Jul 30 15:40 hello.cc
% cp hello.cc backup/hello.cc.backup
% cd backup
% ls -la
total 17
drwx------ 2 sci-jjh system 8192 Jul 30 16:16 .
drwx------ 3 sci-jjh system 8192 Jul 30 16:16 ..
-rw------- 1 sci-jjh system 73 Jul 30 16:16 hello.cc.backup
% cd ..
% rmdir backup
rmdir: backup: File exists
% cd backup
% rm hello.cc.backup
% cd ..
% rmdir backup
% ls -la
total 17
drwx------ 2 sci-jjh system 8192 Jul 30 16:17 .
drwx------ 14 sci-jjh system 8192 Jul 30 15:40 ..
-rw------- 1 sci-jjh system 73 Jul 30 15:40 hello.cc
|