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

HostHatch(15美元)大硬盘VPS,香港NVMe,美国、英国、荷兰、印度、挪威、澳大利亚

HostHatch在当地时间7月30日发布了一系列的促销套餐,涉及亚洲和欧美的多个地区机房,最低年付15美元起,一次买2年还能免费升级双倍资源。商家成立于2011年,提供基于KVM架构的VPS主机,数据中心包括中国香港、美国、英国、荷兰、印度、挪威、澳大利亚等国家的十几个地区机房。官方网站:https://hosthatch.com/NVMe VPS(香港/悉尼)1 CPU core (12.5%...

SugarHosts糖果主机,(67元/年)云服务器/虚拟主机低至半价

SugarHosts 糖果主机商也算是比较老牌的主机商,从2009年开始推出虚拟主机以来,目前当然还是以虚拟主机为主,也有新增云服务器和独立服务器。早年很多网友也比较争议他们家是不是国人商家,其实这些不是特别重要,我们很多国人商家或者国外商家主要还是看重的是品质和服务。一晃十二年过去,有看到SugarHosts糖果主机商12周年的促销活动。如果我们有需要香港、美国、德国虚拟主机的可以选择,他们家的...

企鹅小屋6折年付240元起,美国CN2 GIA VPS促销,独享CPU,三网回程CN2 GIA

企鹅小屋怎么样?企鹅小屋最近针对自己的美国cn2 gia套餐推出了2个优惠码:月付7折和年付6折,独享CPU,100%性能,三网回程CN2 GIA网络,100Mbps峰值带宽,用完优惠码1G内存套餐是年付240元,线路方面三网回程CN2 GIA。如果新购IP不能正常使用,请在开通时间60分钟内工单VPS技术部门更换正常IP;特价主机不支持退款。点击进入:企鹅小屋官网地址企鹅小屋优惠码:年付6折优惠...

linux命令vi为你推荐
中国互联网域名注册什么叫做网络域名 怎么注册网络域名 以及它的收费方式域名备案查询网站备案查询me域名me域名怎么样?虚拟主机申请现在做网站申请虚拟主机选择哪种合适?免费网站空间申请需要一个免费的网站空间申请地址。虚拟主机系统虚拟主机上的系统与电脑操作系统差别?虚拟主机服务商哪个虚拟主机的服务商比较好?上海虚拟主机谁能告诉我杭州哪个公司的虚拟主机最好,机房最好是上海或浙江的.虚拟主机mysql怎么管理虚拟主机上的MYSQL?(高分回报)安徽虚拟主机华夏网络科技有限公司的介绍
鲁诺vps 免费申请域名 host1plus hawkhost 账号泄露 主机屋免费空间 好玩的桌面 服务器怎么绑定域名 轻量 日本空间 嘉洲服务器 河南服务器 java虚拟主机 最好的空间 135邮箱 什么是服务器托管 支持外链的相册 360云服务 架设邮件服务器 云营销系统 更多