几道Unix题,高手帮忙解解..

来源:百度知道 编辑:UC知道 时间:2024/05/23 02:22:00
1.Give a command kine for moving files lab1,lab2,lab3 from the ~/courses/ece345 directory to a newlabs.ece345 directory in your home directory.用-i (mv -i ...然后怎么办?)

2 Give a command to display the lines in the ~/personal/Phones file that are not repeated.

3 You have a file in your home directory called editor tryit&. Rename this file.用什么命令?

4.Give a command line for display files gotlcha and M*A*S*H one screenful at a time .

5 On your UNIX system,how long does it take to find all the files that are larger than 1000 bytes in size? What command(s) did you use?

6 Give the command that displays lines in student_adreesses that start with the letter K or have letter J in them.The output of the command should also display line numbers.

7 Imagine that you have a picture file campus.bmp that you would like to e-mail to a friend. Give the sequence of commands that are needed to convert the file to ASCII form,reduce its size ,and e

1) mv -i ~/courses/ece345/lab{1,2,3} ~/courses/newlabs.ece34
2) ls -l ~/personal | uniq
3) mv "editor tryit&" editor_tryit
4) 不太明白...
5) I think need half hour, depands on hardware and files number. the command is `find / -type f -size 1k -print'

6) grep -n -E '^k.*j+.*' student_adreesses
7) 这个该用 uuencode, 把 campus.bmp 变为 ASCII, 用 base64
命令编码, 再 email, 手头没 uuencode, 忘了命令怎麼打..呵呵

答不完,呵呵,不会不合格吧?