1
a. cd /home/9810888/data
bi. ls ????
bii. b[ac]*
biii. t*k
2
a. chmod: The command chmod is used to set the permissions on a file.
umask: The umask shell command sets the shell's umask value to specified octal number,
or display the current umask value if the argument is omitted.
b. umask 077
ci. chmod u+r myinfo
cii. chmod ug+r myinfo
ciii. chmod a+r myinfo
d. chmod a+r ~
3.
a. mv prog.c ~
b. cp prog.c ~/backup/
c. ln -s prog myedit
d. ln -s /home/patrick/public ~
4
a. ls -la:
Use a long listing format and do not hide entries starting with .
grep -v bash /etc/passwd | wc -l:
Count how many line which non-matching the word "bash" in /etc/passwd
diff 9810888assg1.txt 9810999assg1.txt:
Find differences between 9810888assg1.txt and 9810999assg1.txt
b. mcopy /home/user/data a:
c. ps -aux|grep T
d. ps -aux|grep /etc/passwd
e. sort terms.txt|uniq -c|wc -l
5
a. sed 10,15d item.lst>temp
b. sed /^$/d item.lst>temp
c. sed s/\*// item.lst>temp
d. sed s/Win98/Linux/g item.lst>temp
e. sed -n /[A-Z]/p item.lst>temp
f. sed -n /pc/p item.lst>temp
rm item.lst
mv temp item.lst
               (
geocities.com/tokyo/courtyard/2734)                   (
geocities.com/tokyo/courtyard)                   (
geocities.com/tokyo)