📄 00000002.htm
字号:
============================ <BR>执行格式: ^oldstring ^newstring <BR> 将前一命令中 oldstring 的部份,改成 newstring,并执行之。 <BR>Example: <BR>%find . -name file1.c -print <BR>^file1.c^core <BR>%find . -name core -print <BR> <BR>注:档案 core 为执行程式或命令发生错误时,系统所产生的档案。作为侦错(debug)之□ <BR> ,因其所占空间极大,通常将之删除。 <BR> <BR>资料之压缩 <BR>========== <BR>为了避免不常用的档案或资料,占用太大的磁碟空间,请使用者将之压缩。欲使用压缩过 <BR>的档案或资料前,将之反压缩,即可还原成原来之资料型式。凡是经过压缩处理之档案, <BR>会在档名後面附加 " .Z " 之字元,表示此为一压缩档案。 <BR> <BR>.压缩资料 <BR>========== <BR>执行格式:compress filename 压缩档案 <BR>执行格式:compressdir directory-name 压缩目录 <BR> <BR>.解压缩还原资料 <BR>================ <BR>执行格式:uncompress filename 反压缩档案 <BR>执行格式:uncompressdir directory-name 反压缩目录 <BR> <BR>pipe-line 之使用 <BR>================ <BR>执行格式:command1 | command2 <BR> 将 command1 执行结果,送到 command2 做为 command2 的输入。 <BR>Example: <BR>%ls -Rl | more <BR> 以分页方式,列出目前目录下所有档案,及子目录之名称。 <BR>%cat file1 | more <BR> 以分页方式,列出档案 file1 之内容。 <BR> <BR>I/O control <BR>=========== <BR>.标准输入之控制 <BR>================ <BR>执行格式:command-line < file <BR> 将 file 做为 command-line 之输入。 <BR>Example: <BR>%mail -s "mail test" <A HREF="mailto:user@iis.sinica.edu.tw">user@iis.sinica.edu.tw</A> < file1 <BR> 将档案 file1 当做信件之内容,Subject 名称为 mail test,送给收信人。 <BR> <BR>.标准输出之控制 <BR>================ <BR>执行格式:command > filename <BR> 将 command 之执行结果,送至指定的 filename 中。 <BR>Example: %ls -l > list <BR> 将执行 "ls -l" 命令之结果,写入档案 list 中。 <BR>执行格式:command >! filename <BR> 同上,若 filename 之档案已经存在,则强迫 overwrite。 <BR>Example: %ls -lg >! list <BR> 将执行 "ls - lg" 命令之结果,强迫写入档案 list 中。 <BR>执行格式:command >& filename <BR> 将 command 执行时,萤幕上所产生的任何讯息,写入指定的 filename 中。 <BR>Example: %cc file1.c >& error <BR> 将编译 file1.c 档案时,所产生之任何讯息,写入档案 error 中。 <BR>执行格式:command >> filename <BR> 将 command 执行结果,附加(append)到指定的 filename 中。 <BR>Example: %ls - lag >> list <BR> 将执行 "ls - lag" 命令之结果,附加(append)到档案 list 中。 <BR>执行格式:command >>& filename <BR> 将 command 执行时,萤幕上所产生的任何讯息,附加於指定的 filename中。 <BR>Example: %cc file2.c >>& error <BR> 将编译 file2.c 档案时,萤幕所产生之任何讯息,附加於档案 error 中。 <BR> <BR>查看系统中的使用者: <BR>=================== <BR>执行格式: who 或 finger <BR>执行格式: w <BR>执行格式: finger username or finger username@domainname <BR> <BR>改变自己的 username 进入其他使用者的帐号,拥有其使用权利。 <BR>========================================================= <BR>执行格式: su username <BR>Example: <BR>%su user 进入使用者 user 之帐号 <BR>passwrod: 输入使用者 user 之密码 <BR> <BR>查看 username: <BR>============== <BR>执行格式: who am i 查看 login 时,自己的 username。 <BR>执行格式: whoami 查看目前的 username。若已执行过 "su"命令(switch user), <BR> 则显示出此 user 之 username。 <BR> <BR>查看目前系上所有工作站的使用者: <BR>=============================== <BR>执行格式: rusers <BR> <CTRL><C> => 结束 <BR> <BR>与某工作站上的使用者交谈: <BR>========================= <BR>执行格式: talk username@hostname 或 talk username@ip_address <BR>Example: <BR>1. 可先利用 rusers 指令查看网路上的使用者 <BR>2. 假设自己的帐号是 u84987 ,在工作站 indian 上使用,现在想要与 doc 上的 <BR> u84123 交谈。 <BR>%talk u84123@doc ==> 此时萤幕上将会出现等待画面 <BR> 在对方(u84123)萤幕上将会出现下列讯息 <BR> Message from Talk_Daemon@Local_host_name at xx:xx <BR> talk: connection requested by u84987@indian <BR> talk: respond with: talk u84987@indian <BR> <BR>此时对方(u84123) 必须执行 talk u84987@indian 即可互相交谈。 <BR>最後可按<CRTL><C>结束。 <BR> <BR>检查远端电脑系统是否正常 <BR>======================== <BR>执行格式:ping hostname 或 ping IP-Address <BR>Example: <BR>%ping doc <BR> <BR>电子邮件(E-mail)的使用简介 <BR>========================== <BR>本系之 E-mail address 为 ice.ntnu.edu.tw <BR> <BR>..将档案当做 E-mail 的内容送出 <BR>============================= <BR>执行格式:mail -s "Subject-string" username@address < filename <BR>%mail -s "program" user < file.c <BR> 将 file.c 当做 mail 的内容,送至 user, subject name 为 program。 <BR> <BR>..传送 E-mail 给本系使用者 <BR>======================== <BR>执行格式:mail username <BR>%mail user <BR> <BR>..传送 E-mail 至 外地 <BR>==================== <BR>执行格式: mail username@receiver-address <BR>Example <BR>%mail <A HREF="mailto:paul@gate.sinica.edu.tw">paul@gate.sinica.edu.tw</A> <BR>Subject : mail test <BR> : <BR> : <BR>键入信文内容 <BR> : <BR> : <BR>按下 "Control D" 键或 " . " 键结束信文。 <BR> <BR>连按两次 "Control C" 键,则中断工作,不送此信件。 <BR> <BR>Cc: <BR> ( Carbon copy : 复制一份信文,给其他的收信人 ) <BR> <BR>..检查所传送之 E-mail 是否送出,或滞留於本所之邮件伺服站中 <BR>========================================================= <BR>执行格式:/usr/lib/sendmail -bp <BR> ( 若萤幕显示为 "Mail queue is empty" 之讯息,表示 mail 已送出。 <BR> 若为其它错误讯息,表示 E-mail 因故尚未送出。) <BR> <BR>..读取信件 <BR>========= <BR>执行格式: mail <BR>常用指令如下: <BR>cd [directory] chdir to directory or home if none given <BR>d [message list] delete messages <BR>h print out active message headers <BR>m [user list] mail to specific users <BR>n goto and type next message <BR>p [message list] print messages <BR>q quit, saving unresolved messages in mbox <BR>r [message list] reply to sender (only) of messages <BR>R [message list] reply to sender and all recipients of messages <BR>s [message list] file append messages to file <BR>t [message list] type messages (same as print) <BR>u [message list] undelete messages <BR>v [message list] edit messages with display editor <BR>w [message list] file append messages to file, without from line <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -