Write your answers into a single text file. Su.bmit the text fil.e. 域名
(16 marks)
Hints. Use a single. comma.nd line where possible. Check your answers. 健康
Write UNIX .commands to 服务器
a) show. the. current value of the environment variable PATH. 健康
b) show the count of how many characters the date c.o.mmand outputs. 电子
c) copy all C source fi.les (the filenames have the .extension .c) fr.om the present working direc.tory into a subdirectory called Cfiles. --------------彩票
d) list all files in .the present working directory that .hav.e filenames that match: 外贸
starts .with ei.ther a or B 电影
AND the extensio.n .is a single digit .
e.) comp.ress all the files in the directory Docs/ and store them .in an archive called Docs.tar .
f) sort the file /etc/passwd in reverse alphabetical order by usern.ame. I.ts the firs.t field. 女人
g) Change to. th.e tsch shell. 电子
h) Append the date and current proces.ses list to a file calle.d Log. .
(4 marks)
m1, m2 and m3 are text files. .What do the fol.low commands do unde.r bash? Explain your answer. .
a.) cat m2 & m1 投资
b) cat 0 m1 sort 1 m2 .2. m3 健康
(4 marks)
A d.irectory structure look.s like: 投资
. . /学习
. / . \ 外汇
. / . \.
. . subdir1 subdir2.
. / \ . \.
. / .\ \ 健康
. . file1 file2 subdir3.
That is:
subdir1 a..nd subdir2 are subdirectories of the root directory /;.
s.ubdir1 contains file1 and file2;..
and subdir2. contains su.bdirectory subdir3外贸
a) What is the absolute pathname fo.r su.bdir3 鲜花
(
b) If the pr.esent working directory is /subdir1 give a command to move all the files in subdir1 into subdir3. using .r.elative pathnames. 婚庆
(6 marks)
Br.ief answers please. 乙肝
a) Wha.t are the 4 freedoms associated with Free Software.? see
www.gnu.org/ph.ilosophy/free-sw.html <性病>
b) Why GNU claim free soft.ware is. more reliable than proprietary software? --------------彩票
c) Name a .URL th.at has online tutorial on Linux.虚拟主机