📄 l2.1a
字号:
#printMost of the programs we have studied so far produce theiroutput on the terminal -- examples are "ls", "spell", "grep","date", "who", and so on. (Of course, some do not, like"mv", "cp", and "rm".) In any case, it is sometimes usefulto be able to capture the output of a program in a file,so it can be used in some later processing. This is very easy.For example, to get the current date and time in a file called"now", you need only type date >nowThe symbol ">" tells the command interpreter that outputis to go into the file whose name follows. If the file alreadyexists, its old contents will be clobbered, so use discretion.Your task is to make a list of the files in this directoryin the file "foo".When you have finished, type "ready".#create X1#create junk#create glop#create junk1asdfadfaf#create junk2qerqerqrq#userls >X1#cmp X1 foo#log#next2.1b 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -