• 嵌入式成长轨迹3 【嵌入式环境及基础】【嵌入式Linux软件开发入门】【VI编辑器的使用】


    vi是linux中的一种编辑器,无论使用任何linux系统,总是可以使用甚至只能使用vi

    一、进入与离开
    进入vi:在终端键入 vi + 文件名称
    可以编辑现有文件或开启新文件

    离开vi:在vi编辑器指令模式下键入
    :q  退出vi
    :wq 保存再离开

    切换到指令模式用ESC键
    不确定是否按到可以多按几次,没有区别

    二、vi三种模式
    命令模式:进入时默认的模式,任何输入都会作为命令,不会出现在屏幕上
    插入模式:在命令模式中输入i,a,A等可进入输入模式。此模式按ESC课返回命令模式
    特殊模式:以:或者/为前导的指令,出现在屏幕的最下面一行,任何输入都会被当做特别指令

    三、vi基本操作
    在命令模式中:
    1、输入文本命令
    <a>在光标后输入文本
    <A>在当前行末尾输入文本
    *<i>在光标前输入文本
    <I>在当前行开始输入文本
    *<o>在当前行后输入新一行
    <O>在当前行前输入新一行

    2、光标移动命令(不常用了。。。)
    <b>移动到当前单词的开始
    <e>移动到当前单词的结尾
    <w>向前移动一个单词
    <h>向前移动一个字符
    <j>向上移动一行
    <k>向下移动一行
    <l>向后移动一个字符

    3、删除操作命令
    <x>删除光标所在字符
    <dw>删除光标所在单词
    <d$>删除光标至行尾所有字符
    *<D>同上
    *<dd>删除当前行

    4、改变与替换操作命令
    <r>替换光标所在字符
    <R>替换字符序列
    <cw>替换一个单词
    <ce>同上
    <c$>替换自光标位置至行尾所有字符
    <C>同上
    <cb>替换光标所在前一个字符
    *<cc>替换当前行

    5、查询命令
    </abc>向前查询abc(光标停在第一个)
    *<?abc>向后查询abc(光标停在最后一个)
    <n>向前继续查询
    *<N>向后继续查询
    “继续”指遇到不止一个符合的字符串时

    6、拷贝与粘贴命令
    </yw>将光标所在单词拷入剪贴板
    <y$>将光标至行尾的字符拷入剪贴板
    <Y>同上
    *<yy>将当前行拷入剪贴板
    *<p>将剪贴板中的内容粘贴在光标后
    <P>将剪贴板中的内容粘贴在光标前

    7、文件保存及退出vi命令
    *<:q>不保存退出
    *<:q!>不保存强制性退出
    *<:w>保存编辑(不退出)
    *<:w name>存入文件name中(当未取名时方便)
    <:w! name>强制性存入文件name中
    *<:wq>保存退出
    <:x>同上
    <ZZ>同上

    *8、其他有用命令
    <:set nu> 显示行号
    在命令模式用<nG> 跳到第n行
    <U> 撤销
    <.> 重做
    <nyy> 拷贝n行
    <:e name> 创建新文件name(可用来打开存在文件)
    <:n name> 加载新文件
    <:!> 在vi中可当做在终端中那样使用命令(编译,执行等)

     1 #whileexample
    2 ecode=1000
    3 while [ $ecode -le 1002 ]
    4 do
    5 echo "Please enter employee info ecode=$ecode"
    6 echo "Enter name:"
    7 read name
    8 echo "Enter Email:"
    9 read email
    10 echo "Name:$name Emain:$email">>testfile.dat
    11 ((ecode=$ecode+1))
    12 done


    终端

      1 [root@localhost ~]# vi caseExample.sh
    2 [root@localhost ~]# chmod a+x caseExample.sh
    3 [root@localhost ~]# caseExample.sh
    4 Services:
    5 1)ls2)ls -l3)ExitPlease choice[1-3]
    6 2
    7 ./caseExample.sh: line 10: syntax error near unexpected token `)'
    8 ./caseExample.sh: line 10: ` 2) ls -l::'
    9 [root@localhost ~]# vi caseExample.sh
    10 [root@localhost ~]# vi whileExample.sh
    11 [root@localhost ~]# chomd a+x whileExample.sh
    12 bash: chomd: command not found
    13 [root@localhost ~]# chmod a+x whileExample.sh
    14 [root@localhost ~]# whileExample.sh
    15 Please enter employee info ecode
    16 Enter name:
    17 aa
    18 Enter Email:
    19 aaa
    20 Please enter employee info ecode
    21 Enter name:
    22 bb
    23 Enter Email:
    24 bbb
    25 Please enter employee info ecode
    26 Enter name:
    27 cc
    28 Enter Email:
    29 ccc
    30 [root@localhost ~]# vi whileExample.sh
    31 [root@localhost ~]# ls
    32 anaconda-ks.cfg caseExample.sh install.log 公共的 图片 音乐
    33 Avg.sh file install.log.syslog 模板 文档 桌面
    34 CallCenter.sh First.sh whileExample.sh 视频 下载
    35 [root@localhost ~]# file
    36 Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...
    37 file -C -m magicfiles
    38 Try `file --help' for more information.
    39 [root@localhost ~]# file.dat
    40 bash: file.dat: command not found
    41 [root@localhost ~]# vi whileExample.sh
    42 [root@localhost ~]# ls-l
    43 bash: ls-l: command not found
    44 [root@localhost ~]# ls -l
    45 总计 148
    46 -rw------- 1 root root 1982 2009-03-28 anaconda-ks.cfg
    47 -rwxrwxrwx 1 root root 163 02-21 20:40 Avg.sh
    48 -rwxr-xr-x 1 root root 124 02-21 20:22 CallCenter.sh
    49 -rwxr-xr-x 1 root root 186 02-22 19:16 caseExample.sh
    50 -rw-r--r-- 1 root root 45 02-22 19:21 file
    51 -rwxr-xr-x 1 root root 149 02-21 19:45 First.sh
    52 -rw-r--r-- 1 root root 61777 2009-03-28 install.log
    53 -rw-r--r-- 1 root root 6410 2009-03-28 install.log.syslog
    54 -rwxr-xr-x 1 root root 216 02-22 19:23 whileExample.sh
    55 drwxr-xr-x 2 root root 4096 2010-04-22 公共的
    56 drwxr-xr-x 2 root root 4096 2010-04-22 模板
    57 drwxr-xr-x 2 root root 4096 2010-04-22 视频
    58 drwxr-xr-x 2 root root 4096 2010-04-22 图片
    59 drwxr-xr-x 2 root root 4096 02-21 21:02 文档
    60 drwxr-xr-x 2 root root 4096 2010-04-22 下载
    61 drwxr-xr-x 2 root root 4096 2010-04-22 音乐
    62 drwxr-xr-x 2 root root 4096 2010-04-22 桌面
    63 [root@localhost ~]# whileExample.sh
    64 Please enter employee info ecode
    65 Enter name:
    66 a
    67 Enter Email:
    68 aa
    69 Please enter employee info ecode
    70 Enter name:
    71 b
    72 Enter Email:
    73 bb
    74 Please enter employee info ecode
    75 Enter name:
    76 c
    77 Enter Email:
    78 cc
    79 [root@localhost ~]# ls -l
    80 总计 152
    81 -rw------- 1 root root 1982 2009-03-28 anaconda-ks.cfg
    82 -rwxrwxrwx 1 root root 163 02-21 20:40 Avg.sh
    83 -rwxr-xr-x 1 root root 124 02-21 20:22 CallCenter.sh
    84 -rwxr-xr-x 1 root root 186 02-22 19:16 caseExample.sh
    85 -rw-r--r-- 1 root root 45 02-22 19:21 file
    86 -rwxr-xr-x 1 root root 149 02-21 19:45 First.sh
    87 -rw-r--r-- 1 root root 61777 2009-03-28 install.log
    88 -rw-r--r-- 1 root root 6410 2009-03-28 install.log.syslog
    89 -rw-r--r-- 1 root root 42 02-22 19:24 testfile.dat
    90 -rwxr-xr-x 1 root root 216 02-22 19:23 whileExample.sh
    91 drwxr-xr-x 2 root root 4096 2010-04-22 公共的
    92 drwxr-xr-x 2 root root 4096 2010-04-22 模板
    93 drwxr-xr-x 2 root root 4096 2010-04-22 视频
    94 drwxr-xr-x 2 root root 4096 2010-04-22 图片
    95 drwxr-xr-x 2 root root 4096 02-21 21:02 文档
    96 drwxr-xr-x 2 root root 4096 2010-04-22 下载
    97 drwxr-xr-x 2 root root 4096 2010-04-22 音乐
    98 drwxr-xr-x 2 root root 4096 2010-04-22 桌面
    99 [root@localhost ~]# vi testfile.dat
    100 [root@localhost ~]# vi whileExample.sh
    101 [root@localhost ~]# whileExample.sh
    102 Please enter employee info ecode
    103 Enter name:
    104 a
    105 Enter Email:
    106 aa
    107 Please enter employee info ecode
    108 Enter name:
    109 b
    110 Enter Email:
    111 bb
    112 Please enter employee info ecode
    113 Enter name:
    114 c
    115 Enter Email:
    116 cc@
    117 [root@localhost ~]# vi testfile.dat
    118 [root@localhost ~]# vi whileExample.sh
    119 [root@localhost ~]# vi whileExample.sh
    120 [root@localhost ~]# whileExample.sh
    121 Please enter employee info ecode=1000
    122 Enter name:
    123 a
    124 Enter Email:
    125 aa
    126 Please enter employee info ecode=1001
    127 Enter name:
    128 b
    129 Enter Email:
    130 bb
    131 Please enter employee info ecode=1002
    132 Enter name:
    133 c
    134 Enter Email:
    135 cc
    136 [root@localhost ~]# vi testfile.dat
    137 [root@localhost ~]# ls
    138 anaconda-ks.cfg file testfile.dat 视频 音乐
    139 Avg.sh First.sh whileExample.sh 图片 桌面
    140 CallCenter.sh install.log 公共的 文档
    141 caseExample.sh install.log.syslog 模板 下载
    142 [root@localhost ~]# rm file
    143 rm:是否删除 普通文件 “file”? y
    144 [root@localhost ~]# ls
    145 anaconda-ks.cfg caseExample.sh install.log.syslog 公共的 图片 音乐
    146 Avg.sh First.sh testfile.dat 模板 文档 桌面
    147 CallCenter.sh install.log whileExample.sh 视频 下载
    148 [root@localhost ~]# ps
    149 PID TTY TIME CMD
    150 2971 pts/0 00:00:00 bash
    151 3700 pts/0 00:00:00 ps
    152 [root@localhost ~]# find / -name passwd
    153 ps
    154 ^[[D/etc/passwd
    155 /etc/pam.d/passwd
    156 ^[/usr/lib/news/bin/auth/passwd
    157
    158 ps
    159
    160 [root@localhost ~]#
    161 [root@localhost ~]# ps
    162 PID TTY TIME CMD
    163 2971 pts/0 00:00:00 bash
    164 3939 pts/0 00:00:00 ps
    165 [root@localhost ~]# time find /etc -name passwd
    166 /etc/passwd
    167 /etc/pam.d/passwd
    168
    169 real 0m0.058s
    170 user 0m0.008s
    171 sys 0m0.025s
    172 [root@localhost ~]# ls -l | more
    173 总计 148
    174 -rw------- 1 root root 1982 2009-03-28 anaconda-ks.cfg
    175 -rwxrwxrwx 1 root root 163 02-21 20:40 Avg.sh
    176 -rwxr-xr-x 1 root root 124 02-21 20:22 CallCenter.sh
    177 -rwxr-xr-x 1 root root 186 02-22 19:16 caseExample.sh
    178 -rwxr-xr-x 1 root root 149 02-21 19:45 First.sh
    179 -rw-r--r-- 1 root root 61777 2009-03-28 install.log
    180 -rw-r--r-- 1 root root 6410 2009-03-28 install.log.syslog
    181 -rw-r--r-- 1 root root 132 02-22 19:31 testfile.dat
    182 -rwxr-xr-x 1 root root 224 02-22 19:30 whileExample.sh
    183 drwxr-xr-x 2 root root 4096 2010-04-22 公共的
    184 drwxr-xr-x 2 root root 4096 2010-04-22 模板
    185 drwxr-xr-x 2 root root 4096 2010-04-22 视频
    186 drwxr-xr-x 2 root root 4096 2010-04-22 图片
    187 drwxr-xr-x 2 root root 4096 02-21 21:02 文档
    188 drwxr-xr-x 2 root root 4096 2010-04-22 下载
    189 drwxr-xr-x 2 root root 4096 2010-04-22 音乐
    190 drwxr-xr-x 2 root root 4096 2010-04-22 桌面
    191 [root@localhost ~]# ls -l /dev |more
    192 总计 0
    193 crw-rw----+ 1 root root 14, 12 02-22 19:08 adsp
    194 crw------- 1 root root 10, 175 02-22 19:07 agpgart
    195 crw-rw----+ 1 root root 14, 4 02-22 19:08 audio
    196 drwxr-xr-x 2 root root 80 02-22 19:07 bsg
    197 drwxr-xr-x 3 root root 60 02-22 19:07 bus
    198 lrwxrwxrwx 1 root root 3 02-22 19:07 cdrom -> sr0
    199 lrwxrwxrwx 1 root root 3 02-22 19:07 cdrw -> sr0
    200 crw------- 1 root root 5, 1 02-22 19:08 console
    201 lrwxrwxrwx 1 root root 11 02-22 19:07 core -> /proc/kcore
    202 drwxr-xr-x 5 root root 100 02-22 19:07 disk
    203 brw-r----- 1 root disk 253, 0 02-22 19:07 dm-0
    204 brw-r----- 1 root disk 253, 1 02-22 19:07 dm-1
    205 crw-rw---- 1 root root 14, 9 02-22 19:08 dmmidi
    206 crw-rw----+ 1 root root 14, 3 02-22 19:08 dsp
    207 lrwxrwxrwx 1 root root 3 02-22 19:07 dvd -> sr0
    208 lrwxrwxrwx 1 root root 3 02-22 19:07 dvdrw -> sr0
    209 lrwxrwxrwx 1 root root 13 02-22 19:07 fd -> /proc/self/fd
    210 brw-r----- 1 root floppy 2, 0 02-22 19:07 fd0
    211 brw-r----- 1 root floppy 2, 84 02-22 19:07 fd0u1040
    212 brw-r----- 1 root floppy 2, 88 02-22 19:07 fd0u1120
    213 brw-r----- 1 root floppy 2, 28 02-22 19:07 fd0u1440
    214 brw-r----- 1 root floppy 2, 124 02-22 19:07 fd0u1600
    215 brw-r----- 1 root floppy 2, 44 02-22 19:07 fd0u1680
    216 brw-r----- 1 root floppy 2, 60 02-22 19:07 fd0u1722
    217 brw-r----- 1 root floppy 2, 76 02-22 19:07 fd0u1743
    218 brw-r----- 1 root floppy 2, 96 02-22 19:07 fd0u1760
    219 brw-r----- 1 root floppy 2, 116 02-22 19:07 fd0u1840
    220 brw-r----- 1 root floppy 2, 100 02-22 19:07 fd0u1920
    221 brw-r----- 1 root floppy 2, 12 02-22 19:07 fd0u360
    222 brw-r----- 1 root floppy 2, 16 02-22 19:07 fd0u720
    223 brw-r----- 1 root floppy 2, 120 02-22 19:07 fd0u800
    224 brw-r----- 1 root floppy 2, 52 02-22 19:07 fd0u820
    225 brw-r----- 1 root floppy 2, 68 02-22 19:07 fd0u830
    226 lrwxrwxrwx 1 root root 3 02-22 19:07 floppy -> fd0
    227 lrwxrwxrwx 1 root root 3 02-22 19:07 floppy-fd0 -> fd0
    228 crw-rw-rw- 1 root root 1, 7 02-22 19:07 full
    229 crw-rw---- 1 root fuse 10, 229 02-22 19:07 fuse
    230 crw-rw---- 1 root root 10, 228 02-22 19:07 hpet
    231 crw-rw---- 1 root uucp 229, 0 02-22 19:07 hvc0
    232 crw-rw---- 1 root uucp 229, 1 02-22 19:07 hvc1
    233 crw-rw---- 1 root uucp 229, 2 02-22 19:07 hvc2
    234 crw-rw---- 1 root uucp 229, 3 02-22 19:07 hvc3
    235 crw-rw---- 1 root uucp 229, 4 02-22 19:07 hvc4
    236 crw-rw---- 1 root uucp 229, 5 02-22 19:07 hvc5
    237 crw-rw---- 1 root uucp 229, 6 02-22 19:07 hvc6
    238 crw-rw---- 1 root uucp 229, 7 02-22 19:07 hvc7
    239 prw------- 1 root root 0 02-22 19:08 initctl
    240 drwxr-xr-x 3 root root 200 02-22 19:07 input
    241 crw-rw---- 1 root root 1, 11 02-22 19:07 kmsg
    242 srw-rw-rw- 1 root root 0 02-22 19:08 log
    243 brw-r----- 1 root disk 7, 0 02-22 19:07 loop0
    244 brw-r----- 1 root disk 7, 1 02-22 19:07 loop1
    245 brw-r----- 1 root disk 7, 2 02-22 19:07 loop2
    246 brw-r----- 1 root disk 7, 3 02-22 19:07 loop3
    247 brw-r----- 1 root disk 7, 4 02-22 19:07 loop4
    248 brw-r----- 1 root disk 7, 5 02-22 19:07 loop5
    249 brw-r----- 1 root disk 7, 6 02-22 19:07 loop6
    250 brw-r----- 1 root disk 7, 7 02-22 19:07 loop7
    251 crw-rw---- 1 root lp 6, 0 02-22 19:07 lp0
    252 crw-rw---- 1 root lp 6, 1 02-22 19:07 lp1
    253 crw-rw---- 1 root lp 6, 2 02-22 19:07 lp2
    254 crw-rw---- 1 root lp 6, 3 02-22 19:07 lp3
    255 lrwxrwxrwx 1 root root 13 02-22 19:07 MAKEDEV -> /sbin/MAKEDEV
    256 drwxr-xr-x 2 root root 100 02-22 19:07 mapper
    257 crw-r----- 1 root kmem 1, 1 02-22 19:07 mem
    258 crw-rw----+ 1 root root 14, 2 02-22 19:08 midi
    259 crw-rw----+ 1 root root 14, 0 02-22 19:08 mixer
    260 drwxr-xr-x 2 root root 60 02-22 19:07 net
    261 crw-rw-rw- 1 root root 1, 3 02-22 19:07 null
    262 crw-rw---- 1 root root 10, 144 02-22 19:07 nvram
    263 crw-rw---- 1 root root 1, 12 02-22 19:07 oldmem
    264 crw-rw---- 1 root lp 99, 0 02-22 19:07 parport0
    265 crw-rw---- 1 root lp 99, 1 02-22 19:07 parport1
    266 crw-rw---- 1 root lp 99, 2 02-22 19:07 parport2
    267 crw-rw---- 1 root lp 99, 3 02-22 19:07 parport3
    268 crw-r----- 1 root kmem 1, 4 02-22 19:07 port
    269 crw------- 1 root root 108, 0 02-22 19:07 ppp
    270 crw-rw-rw- 1 root tty 5, 2 02-22 19:42 ptmx
    271 drwxr-xr-x 2 root root 0 02-22 19:07 pts
    272 lrwxrwxrwx 1 root root 4 02-22 19:07 ram -> ram1
    273 brw-r----- 1 root disk 1, 0 02-22 19:07 ram0
    274 brw-r----- 1 root disk 1, 1 02-22 19:07 ram1
    275 brw-r----- 1 root disk 1, 10 02-22 19:07 ram10
    276 brw-r----- 1 root disk 1, 11 02-22 19:07 ram11
    277 brw-r----- 1 root disk 1, 12 02-22 19:07 ram12
    278 brw-r----- 1 root disk 1, 13 02-22 19:07 ram13
    279 brw-r----- 1 root disk 1, 14 02-22 19:07 ram14
    280 brw-r----- 1 root disk 1, 15 02-22 19:07 ram15
    281 brw-r----- 1 root disk 1, 2 02-22 19:07 ram2
    282 brw-r----- 1 root disk 1, 3 02-22 19:07 ram3
    283 brw-r----- 1 root disk 1, 4 02-22 19:07 ram4
    284 brw-r----- 1 root disk 1, 5 02-22 19:07 ram5
    285 brw-r----- 1 root disk 1, 6 02-22 19:07 ram6
    286 brw-r----- 1 root disk 1, 7 02-22 19:07 ram7
    287 brw-r----- 1 root disk 1, 8 02-22 19:07 ram8
    288 brw-r----- 1 root disk 1, 9 02-22 19:07 ram9
    289 lrwxrwxrwx 1 root root 4 02-22 19:07 ramdisk -> ram0
    290 crw-rw-rw- 1 root root 1, 8 02-22 19:07 random
    291 brw------- 1 root root 253, 0 02-22 19:07 root
    292 crw-r--r-- 1 root root 10, 135 02-22 19:07 rtc
    293 lrwxrwxrwx 1 root root 3 02-22 19:07 scd0 -> sr0
    294 brw-r----- 1 root disk 8, 0 02-22 19:07 sda
    295 brw-r----- 1 root disk 8, 1 02-22 19:08 sda1
    296 brw-r----- 1 root disk 8, 2 02-22 19:07 sda2
    297 crw-rw----+ 1 root root 14, 1 02-22 19:07 sequencer
    298 crw-rw----+ 1 root root 14, 8 02-22 19:07 sequencer2
    299 crw-r----- 1 root disk 21, 0 02-22 19:07 sg0
    300 crw-r----- 1 root disk 21, 1 02-22 19:07 sg1
    301 drwxrwxrwt 2 root root 40 02-22 19:09 shm
    302 crw-rw---- 1 root root 10, 231 02-22 19:07 snapshot
    303 drwxr-xr-x 2 root root 180 02-22 19:08 snd
    304 brw-r----- 1 root disk 11, 0 02-22 19:07 sr0
    305 lrwxrwxrwx 1 root root 15 02-22 19:07 stderr -> /proc/self/fd/2
    306 lrwxrwxrwx 1 root root 15 02-22 19:07 stdin -> /proc/self/fd/0
    307 lrwxrwxrwx 1 root root 15 02-22 19:07 stdout -> /proc/self/fd/1
    308 crw------- 1 root root 4, 0 02-22 19:07 systty
    309 crw-rw-rw- 1 root root 5, 0 02-22 19:07 tty
    310 crw--w---- 1 root root 4, 0 02-22 19:07 tty0
    311 crw------- 1 root root 4, 1 02-22 19:08 tty1
    312 crw--w---- 1 root tty 4, 10 02-22 19:07 tty10
    313 crw--w---- 1 root tty 4, 11 02-22 19:07 tty11
    314 crw--w---- 1 root tty 4, 12 02-22 19:07 tty12
    315 crw--w---- 1 root tty 4, 13 02-22 19:07 tty13
    316 crw--w---- 1 root tty 4, 14 02-22 19:07 tty14
    317 crw--w---- 1 root tty 4, 15 02-22 19:07 tty15
    318 crw--w---- 1 root tty 4, 16 02-22 19:07 tty16
    319 crw--w---- 1 root tty 4, 17 02-22 19:07 tty17
    320 crw--w---- 1 root tty 4, 18 02-22 19:07 tty18
    321 crw--w---- 1 root tty 4, 19 02-22 19:07 tty19
    322 crw------- 1 root root 4, 2 02-22 19:08 tty2
    323 crw--w---- 1 root tty 4, 20 02-22 19:07 tty20
    324 crw--w---- 1 root tty 4, 21 02-22 19:07 tty21
    325 crw--w---- 1 root tty 4, 22 02-22 19:07 tty22
    326 crw--w---- 1 root tty 4, 23 02-22 19:07 tty23
    327 crw--w---- 1 root tty 4, 24 02-22 19:07 tty24
    328 crw--w---- 1 root tty 4, 25 02-22 19:07 tty25
    329 crw--w---- 1 root tty 4, 26 02-22 19:07 tty26
    330 crw--w---- 1 root tty 4, 27 02-22 19:07 tty27
    331 crw--w---- 1 root tty 4, 28 02-22 19:07 tty28
    332 crw--w---- 1 root tty 4, 29 02-22 19:07 tty29
    333 crw------- 1 root root 4, 3 02-22 19:08 tty3
    334 crw--w---- 1 root tty 4, 30 02-22 19:07 tty30
    335 crw--w---- 1 root tty 4, 31 02-22 19:07 tty31
    336 crw--w---- 1 root tty 4, 32 02-22 19:07 tty32
    337 crw--w---- 1 root tty 4, 33 02-22 19:07 tty33
    338 crw--w---- 1 root tty 4, 34 02-22 19:07 tty34
    339 crw--w---- 1 root tty 4, 35 02-22 19:07 tty35
    340 crw--w---- 1 root tty 4, 36 02-22 19:07 tty36
    341 crw--w---- 1 root tty 4, 37 02-22 19:07 tty37
    342 crw--w---- 1 root tty 4, 38 02-22 19:07 tty38
    343 crw--w---- 1 root tty 4, 39 02-22 19:07 tty39
    344 crw------- 1 root root 4, 4 02-22 19:08 tty4
    345 crw--w---- 1 root tty 4, 40 02-22 19:07 tty40
    346 crw--w---- 1 root tty 4, 41 02-22 19:07 tty41
    347 crw--w---- 1 root tty 4, 42 02-22 19:07 tty42
    348 crw--w---- 1 root tty 4, 43 02-22 19:07 tty43
    349 crw--w---- 1 root tty 4, 44 02-22 19:07 tty44
    350 crw--w---- 1 root tty 4, 45 02-22 19:07 tty45
    351 crw--w---- 1 root tty 4, 46 02-22 19:07 tty46
    352 crw--w---- 1 root tty 4, 47 02-22 19:07 tty47
    353 crw--w---- 1 root tty 4, 48 02-22 19:07 tty48
    354 crw--w---- 1 root tty 4, 49 02-22 19:07 tty49
    355 crw------- 1 root root 4, 5 02-22 19:08 tty5
    356 crw--w---- 1 root tty 4, 50 02-22 19:07 tty50
    357 crw--w---- 1 root tty 4, 51 02-22 19:07 tty51
    358 crw--w---- 1 root tty 4, 52 02-22 19:07 tty52
    359 crw--w---- 1 root tty 4, 53 02-22 19:07 tty53
    360 crw--w---- 1 root tty 4, 54 02-22 19:07 tty54
    361 crw--w---- 1 root tty 4, 55 02-22 19:07 tty55
    362 crw--w---- 1 root tty 4, 56 02-22 19:07 tty56
    363 crw--w---- 1 root tty 4, 57 02-22 19:07 tty57
    364 crw--w---- 1 root tty 4, 58 02-22 19:07 tty58
    365 crw--w---- 1 root tty 4, 59 02-22 19:07 tty59
    366 crw------- 1 root root 4, 6 02-22 19:08 tty6
    367 crw--w---- 1 root tty 4, 60 02-22 19:07 tty60
    368 crw--w---- 1 root tty 4, 61 02-22 19:07 tty61
    369 crw--w---- 1 root tty 4, 62 02-22 19:07 tty62
    370 crw--w---- 1 root tty 4, 63 02-22 19:07 tty63
    371 crw--w---- 1 root root 4, 7 02-22 19:07 tty7
    372 crw--w---- 1 root tty 4, 8 02-22 19:08 tty8
    373 crw--w---- 1 root tty 4, 9 02-22 19:07 tty9
    374 crw-rw---- 1 root uucp 4, 64 02-22 19:07 ttyS0
    375 crw-rw---- 1 root uucp 4, 65 02-22 19:07 ttyS1
    376 crw-rw---- 1 root uucp 4, 66 02-22 19:07 ttyS2
    377 crw-rw---- 1 root uucp 4, 67 02-22 19:07 ttyS3
    378 crw-rw-rw- 1 root root 1, 9 02-22 19:08 urandom
    379 crw-rw---- 1 root root 251, 0 02-22 19:07 usbdev1.1_ep00
    380 crw-rw---- 1 root root 251, 1 02-22 19:07 usbdev1.1_ep81
    381 crw-rw---- 1 root root 251, 2 02-22 19:07 usbdev2.1_ep00
    382 crw-rw---- 1 root root 251, 3 02-22 19:07 usbdev2.1_ep81
    383 crw-rw---- 1 root root 252, 0 02-22 19:07 usbmon0
    384 crw-rw---- 1 root root 252, 1 02-22 19:07 usbmon1
    385 crw-rw---- 1 root root 252, 2 02-22 19:07 usbmon2
    386 crw-rw---- 1 vcsa tty 7, 0 02-22 19:07 vcs
    387 crw-rw---- 1 vcsa tty 7, 1 02-22 19:08 vcs1
    388 crw-rw---- 1 vcsa tty 7, 2 02-22 19:08 vcs2
    389 crw-rw---- 1 vcsa tty 7, 3 02-22 19:08 vcs3
    390 crw-rw---- 1 vcsa tty 7, 4 02-22 19:08 vcs4
    391 crw-rw---- 1 vcsa tty 7, 5 02-22 19:08 vcs5
    392 crw-rw---- 1 vcsa tty 7, 6 02-22 19:08 vcs6
    393 crw-rw---- 1 vcsa tty 7, 7 02-22 19:08 vcs7
    394 crw-rw---- 1 vcsa tty 7, 8 02-22 19:08 vcs8
    395 crw-rw---- 1 vcsa tty 7, 128 02-22 19:07 vcsa
    396 crw-rw---- 1 vcsa tty 7, 129 02-22 19:08 vcsa1
    397 crw-rw---- 1 vcsa tty 7, 130 02-22 19:08 vcsa2
    398 crw-rw---- 1 vcsa tty 7, 131 02-22 19:08 vcsa3
    399 crw-rw---- 1 vcsa tty 7, 132 02-22 19:08 vcsa4
    400 crw-rw---- 1 vcsa tty 7, 133 02-22 19:08 vcsa5
    401 crw-rw---- 1 vcsa tty 7, 134 02-22 19:08 vcsa6
    402 crw-rw---- 1 vcsa tty 7, 135 02-22 19:08 vcsa7
    403 crw-rw---- 1 vcsa tty 7, 136 02-22 19:08 vcsa8
    404 crw------- 1 root root 250, 0 02-22 19:08 vmci
    405 drwx------ 2 root root 80 02-22 19:07 VolGroup00
    406 crw-rw-rw- 1 root root 10, 62 02-22 19:08 vsock
    407 lrwxrwxrwx 1 root root 4 02-22 19:07 X0R -> null
    408 lrwxrwxrwx 1 root root 4 02-22 19:07 XOR -> null
    409 crw-rw-rw- 1 root root 1, 5 02-22 19:07 zero
    410 [root@localhost ~]#
    411
    412


     

  • 相关阅读:
    SQL Server 造成cpu 使用率高的 6 原因
    SQL Server SQLOS
    flask数据库操作
    redis数据类型
    python3中__get__,__getattr__,__getattribute__的区别
    强弱类型,动静态语言
    函数式编程和面向对象编程
    数据库事务的四个特性和含义
    流畅的python
    Python中__repr__和__str__区别
  • 原文地址:https://www.cnblogs.com/zeedmood/p/2376137.html
Copyright © 2020-2023  润新知