vilinux命令vi

linux命令vi  时间:2021-01-12  阅读:()
Linux20056Linux–p.
1shellvimLinuxLinux–p.
2LinuxLinuxLinux–p.
3LinuxshellLinux–p.
4LinuxLinux–p.
5shellLinuxShellKornBourneCShell—-BashLinux–p.
6LinuxLinux–p.
7Xsshtelnetsshteam01@HostIPteam01@HostIP'spassword:******telnetHostIPLogin:team01Password:******exitctrl+dLinux–p.
8passwd$passwdteam01'soldpassword:team01'snewpassword:Enterthenewpasswordagain:Linux–p.
9$commandoptionsargumentsForExample:$mail-fnewmail$mail-fnewmail$mail-fnewmail$mail-fnewmail$mailnewmail-f$who-m-u$who-m-u$who-mu$who-muLinux–p.
10shellEntershellCommandnotFound\Enter>Linux–p.
11Linux–p.
12LinuxLinux–p.
13/homeusrbindevvaretctmpteam01binlocalLinux–p.
14Linux//home/bin/usr/usr/bin/usr/lib/usr/local/usr/docLinux/usr/man/usr/sbin/sbin/opt/var/dev/etc/cdroomLinux–p.
15/Linux–p.
16-I-Linux–p.
17Linux$@_+-255Linux–p.
18/dev/tty1leLinux–p.
19ASCIILinux–p.
20I/IIILinux–p.
21Linux–p.
22lspwdcdmkdirrmdirLinux–p.
23lsls26-1-a.
.
.
.
-l-RLinux–p.
24ls[root@glede/root]$ls-latotal16drwxrxrx4rootroot4096Jan111:28.
drwxrx11rootroot4096Jan111:27.
.
drwxrxrx2rootroot4096Jan111:27team011drwxrxrx2rootroot4096Jan111:28team012t[root@glede/root]$lst*Linux–p.
25pwd$pwd/home/team01Linux–p.
26cdcdcd[]cdcd-$pwd/home/eagle/tex/linux$cd/phd$pwd/home/eagle/phd$cd-$pwd/home/eagle/tex/linuxLinux–p.
27mkdirmkdirmkdir[-p][-m][]-p-mchmodteam02rwx$lsteam01$mkdirm777team02$lsteam01team02Linux–p.
28rmdirrmdirrmdir[-p][]-pLinux–p.
29cpmvrmlnndlocatewhichtouchLinux–p.
30cpcpcp[][]cp-r[][]Linux–p.
31/mvmv,mv[][]Linux–p.
32rmrm[][]-r-iLinux–p.
33lnlnln[]ln[]Linux–p.
34ln-s-dle1le2team01team02$ln-s/home/le1/home/le2/home/team01team02dir3dir4$ln-ddir3dir4Linux–p.
35ndndnd[][]Linux–p.
36nd-atimenn*24-ctimenn*24-aminnn-cminnn-empty-namename-typexxd,xfxc,xb,xpxl,xsLinux–p.
37nd/home7:$nd/home-atime7-print/usr/srccore$nd/usr/src-namecore-execrm{}\;/home.
jpg100K$nd/home-name"*.
jpg"-size100kLinux–p.
38locate/whichlocatelenamewhichlsLinux–p.
39touchtouch[]MMDDhhmmYY-a-ctouch$lsrwrr1rootroot37350Jan272003file1$touchfile1rwrr1rootroot37350Jan116:15file1-t$toucht01201500file1rwrr1rootroot37350Jan2015:00file1Linux–p.
40catmorelessheadtailLinux–p.
41catcat[][]-b1-E$-n1Linux–p.
42catcat$cat123123>le1le2le3$catle1le2>le3le3>>>Linux–p.
43moremore,lessmore[][]vviLinux–p.
44more-+/+-nn-cle1123$more+/123le1le110$more-c-10le1Linux–p.
45lessmoremorevviLinux–p.
46head10head[]-cNN-nNN$head-5leLinux–p.
47tail10tail[]-cNN-nNN+NNLinux–p.
48commdiffLinux–p.
49commcomm[-123]le1le2-1-2-3Linux–p.
50commle1le2main(main({{printf("Hello!
\n");printf("Good!
\n");}}comm$comm12file1file2main({}Linux–p.
51diffdiff[]le1le2-c-Cnn-rLinux–p.
52diffn1an3,n4n1,n2dn3n1,n2cn3,n4a-d-c-le1le21main()1main()2{2{3printf("Hello!
\n");3intn,m;4}4n=10;55printf("%d\n",m=n*10);6}Linux–p.
53diff$diffle1le23,5c3,63intn,m;>4n=10;>5printf("%d\n",m=n*10);>6}Linux–p.
54chmodchownchgrpLinux–p.
55rwxrwxrwxusergroupothersrwxrwxLinux–p.
56usergroupothersrwxrw-r–1111101007(4+2+1)6(4+2+0)4(4+0+0)le-rw-r–r–644directorydrwxr-xr-x755Linux–p.
57chmodchmod[]Linux–p.
58u:g:o:+:-:=:Linux–p.
59chmodle$chmod777lele$chmod644le$chmoda+wle$chmodo-wr,g-wrle$chmodo=rleLinux–p.
60chownchownrootchown[]-v-rLinux–p.
61chgrpchgrpchgrp[]-v-rLinux–p.
62vi/vimaicoLinux–p.
63/vivivivilevi:q:q!
vi:xvi:wqviLinux–p.
64iIaAoOLinux–p.
65↑ctrl+P↓ctrl+N→Space←Backspace+j-klhLinux–p.
660$[]G[][Enter][]|Linux–p.
67ctrl+uctrl+dctrl+fctrl+bLinux–p.
68xnxnXnXnddDdwd0d5G5dGLinux–p.
69rRcCLinux–p.
70/%s///gLinux–p.
71uU.
Linux–p.
72vivi:wle,vi:q,vimhttp://vcd.
gro.
clinux.
org/Linux–p.
73shellLinux–p.
74ShellLinux–p.
75*Linux–p.
76012Linux–p.
77commandlenamecommand2>lenameLinux–p.
78cmd1|cmd2lsgrep$ls|greptLinux–p.
79shell$passpasswdLinux–p.
80ShellshellshellLinux–p.
81var=stringsetvar=stringunsetvarechoLinux–p.
82int=5setvar1=abcdsetvar2=var1$efghvar2abcdefghvar2echo$var2abcdefghLinux–p.
83nohupjobsLinux–p.
84LinuxPIDLinux–p.
85Linux–p.
86PIDPPID2011206201207206Linux–p.
87psps[]-atty-f-r-u-xLinux–p.
88ctrl-ckillkillallkillkillallLinux–p.
89$psfUIDPIDPPID$\cdots$TTY$\cdots$COMMANDjohn206201$\cdots$1$\cdots$bashjohn209206$\cdots$1$\cdots$vimx.
txt$kill206$kill9206$killallvimLinux–p.
90ls-R1>out&nohup$nohupls-Rl>out&$nohupls-Rl&Linux–p.
91CPUtoptopr[]qLinux–p.
92LinuxLinux–p.
93datecal$dateThuJan2705:34:40CST2000$cal62005SunMonTueWedThuFriSat123456789101112131415161718192021222324252627282930Linux–p.
94clear$clearLinux–p.
95echoecho[-n]STRING-n$echoThisisacommand.
Thisisacommand.
$echoThisisacommandThisisacommand.
$echo-nEnterdata->Enterdata->$_Linux–p.
96grepgrep12].
txthello$grephello*.
txtle1ramble.
*b$grepramble˙ble1Linux–p.
97wc$wc[-c][-l][-w]lename-c-l-w$wcmyle171261085mylelineswordsLinux–p.
98ping$ping10.
99.
19.
44PING10.
99.
19.
44(10.
99.
19.
44)from10.
99.
19.
44:56(84)bytesofdata.
64bytesfrom10.
99.
19.
44:icmp_seq=1ttl=255time=0.
092ms64bytesfrom10.
99.
19.
44:icmp_seq=2ttl=255time=0.
022ms64bytesfrom10.
99.
19.
44:icmp_seq=3ttl=255time=0.
020ms64bytesfrom10.
99.
19.
44:icmp_seq=4ttl=255time=0.
019ms—10.
99.
19.
44pingstatistics—4packetstransmitted,4received,0%loss,time2997msrttmin/avg/max/mdev=0.
019/0.
038/0.
092/0.
031msLinux–p.
99ngershell$ngerrootLoginname:rootDirectory:/Shell:/bin/bashOnsinceJan2705:34:17onpts/1,14secondsIdleTimefrom128.
0.
0.
71Linux–p.
100manmanman[]$manlsmanNAMESYNOPSISDESCRIPTIONOPTIONLinux–p.
101infoinfo/pinfoinfoinfo[]pinfo[]Linux–p.
102–help/-h–help-h$ls–help$man-hLinux–p.
103dududu[][]$duh/home/eagle/data/590M/home/eagle/data/surface/old926M/home/eagle/data/surface31M/home/eagle/data/134M/home/eagle/data/asem2.
8M/home/eagle/data/line/old105M/home/eagle/data/line1.
1G/home/eagle/data/Linux–p.
104dfdfdf[][]$dfhFilesystem%/dev/hda1958M728M181M81%/tmpfs253M4.
0K253M1%/dev/shm/dev/hda69.
2G4.
3G4.
5G49%/usr/dev/hda765G61G212M100%/home/dev/hda836G30G4.
1G89%/backuptmpfs10M2.
8M7.
3M28%/devLinux–p.
105/mozillarefoxftplftpwgetcurlgftpgqviewgthumbLinux–p.
106ftpftpHostftpUser@HostftpUser:Passwd@Hostls/get/mput/put/mgethelphelpCMDbinASCIIascLinux–p.
107lftpftpmirrormirror-Rcatzcat!
CMD!
lslftpftp://urlLinux–p.
108wget/curlwget-chttp://urlhttp://vcd.
gro.
clinux.
org/doc/usr_01.
html-http://vcd.
gro.
clinux.
org/doc/usr_15.
htmlcurlhttp://vcd.
gro.
clinux.
org/doc/usr_[01-15].
htmlLinux–p.
109FortranIntelifortifcPGIpgf90pgf77GNUFortrang77gfortranC/C++InteliccPGIpgccGNUCgccg++Linux–p.
110http://www.
linuxsir.
orghttp://www.
linuxsir.
org/bbs/showthread.
phpt=199479http://www.
linuxsir.
org/bbs/showthread.
phpt=204304Linux–p.
111Linux–p.
112

半月湾($59.99/年),升级带宽至200M起步 三网CN2 GIA线路

在前面的文章中就有介绍到半月湾Half Moon Bay Cloud服务商有提供洛杉矶DC5数据中心云服务器,这个堪比我们可能熟悉的某服务商,如果我们有用过的话会发现这个服务商的价格比较贵,而且一直缺货。这里,于是半月湾服务商看到机会来了,于是有新增同机房的CN2 GIA优化线路。在之前的文章中介绍到Half Moon Bay Cloud DC5机房且进行过测评。这次的变化是从原来基础的年付49....

VirtVPS抗投诉瑞士VPS上线10美元/月

专心做抗投诉服务器的VirtVPS上线瑞士机房,看中的就是瑞士对隐私的保护,有需要欧洲抗投诉VPS的朋友不要错过了。VirtVPS这次上新的瑞士服务器采用E-2276G处理器,Windows/Linux操作系统可选。VirtVPS成立于2018年,主营荷兰、芬兰、德国、英国机房的离岸虚拟主机托管、VPS、独立服务器、游戏服务器和外汇服务器业务。VirtVPS 提供世界上最全面的安全、完全受保护和私...

数脉科技:六月优惠促销,免备案香港物理服务器,E3-1230v2处理器16G内存,350元/月

数脉科技六月优惠促销发布了!数脉科技对香港自营机房的香港服务器进行超低价促销,可选择30M、50M、100Mbps的优质bgp网络。更大带宽可在选购时选择同样享受优惠,目前仅提供HKBGP、阿里云产品,香港CN2、产品优惠码续费有效,仅限新购,每个客户可使用于一个订单。新客户可以立减400元,或者选择对应的机器用相应的优惠码,有需要的朋友可以尝试一下。点击进入:数脉科技官方网站地址数脉科技是一家成...

linux命令vi为你推荐
域名注册com如何注册.com.cn域名php虚拟主机免费的国内的php虚拟主机有吗电信主机租用租用电信服务器要注意什么?asp主机空间有ASP虚拟主机空间,还需要另外买Access数据库么?域名注册查询如何知道域名注册信息?网站服务器租用哪些网站适合租用独立服务器?查询ip如何查IP网址域名购买在网上购买域名 会受骗吗台湾主机电脑主板那些牌子是台湾的?那些牌子是国产的?网站域名空间哪个网站的域名空间的便宜?
com域名空间 域名交易 com域名注册1元 国外vps 域名停靠一青草视频 google电话 域名商 80vps linode 163网 免费博客空间 最好看的qq空间 国外网站代理服务器 绍兴高防 嘟牛 网通ip 骨干网络 炎黄盛世 免费个人空间 老左正传 更多