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

TTcloud:日本独立服务器促销活动,价格$70/月起,季付送10Mbps带宽

ttcloud怎么样?ttcloud是一家海外服务器厂商,运营服务器已经有10年时间,公司注册地址在香港地区,业务范围包括服务器托管,机柜托管,独立服务器等在内的多种服务。我们后台工单支持英文和中文服务。TTcloud最近推出了新上架的日本独立服务器促销活动,价格 $70/月起,季付送10Mbps带宽。也可以跟进客户的需求进行各种DIY定制。点击进入:ttcloud官方网站地址TTcloud拥有自...

易探云:香港CN2云服务器低至18元/月起,183.60元/年

易探云怎么样?易探云最早是主攻香港云服务器的品牌商家,由于之前香港云服务器性价比高、稳定性不错获得了不少用户的支持。易探云推出大量香港云服务器,采用BGP、CN2线路,机房有香港九龙、香港新界、香港沙田、香港葵湾等,香港1核1G低至18元/月,183.60元/年,老站长建站推荐香港2核4G5M+10G数据盘仅799元/年,性价比超强,关键是延迟全球为50ms左右,适合国内境外外贸行业网站等,如果需...

Raksmart:香港高防服务器/20Mbps带宽(cn2+bgp)/40G-100Gbps防御

RAKsmart怎么样?RAKsmart香港机房新增了付费的DDoS高防保护服务,香港服务器默认接入20Mbps的大陆优化带宽(电信走CN2、联通和移动走BGP)。高防服务器需要在下单页面的IP Addresses Option里面选择购买,分:40Gbps大陆优化高防IP-$461/月、100Gbps国际BGP高防IP-$692/月,有兴趣的可以根据自己的需求来选择!点击进入:RAKsmart官...

linux命令vi为你推荐
域名查询我的电脑域名怎么查域名空间代理哪里的域名空间商比较好?查询ip如何查IP网址空间域名服务器和空间域名什么意思免备案虚拟空间香港免备案虚拟主机空间怎么样合肥虚拟主机虚拟主机哪里买好一些?apache虚拟主机Apache跟虚拟主机有什么关系?apache虚拟主机linux操作系统Apache配置虚拟主机大连虚拟主机大连建网站哪里好?北京虚拟主机北京服务好的虚拟主机代理商介绍几个?
买域名 过期域名抢注 韩国电信 42u机柜尺寸 realvnc 免费ftp站点 上海域名 国外免费全能空间 cdn联盟 免费防火墙 vip域名 台湾谷歌 免费mysql数据库 网通服务器 贵阳电信 畅行云 qq金券 服务器论坛 永久免费空间 美国迈阿密 更多