cd ~ 返回主目录 11. cat,more,less 命令 将某个文件的内容显示出来,两个命令不同的是:cat 把文件内容一直打印出来,而more则分展显示. less 可以上下翻滚查看内容. cat > 1.txt 可以填写或者复制内容,按ctrl+d保存 cat 1.c more 1.c head -n filename 显示第N行的内容 tail -n filename
-ctime n 文件的状态在n前之间修改过 -exec command 如命令的返回代码为零(找到相应的文件)则真,command必须以 \; 结果,此外在命令的执行中 {} 为查找到的文件路径名 -ok command 与exec相类似,但在执行每个命令之间要求用户确认 -print 打印当前路径名 -newer filename 如文件的最后修改日期较filename新则为...
More vim examples: How To Record and Play in Vim Editor 8. diff command examples Ignore white space while comparing. # diff -w name_list.txt name_list_new.txt 2c2,3 < John Doe --- > John M Doe > Jason Bourne More diff examples: Top 4 File Difference Tools ...
服务管理命令 ntsysv 设置系统服务 40.fdisk /mbr 删除GRUB41.数据库启动 启动mysql: service mysqld start(/etc/rc.d/init.d/mysqld start) mysql -uroot -p 输入密码即可操作mysql数据库. 启动Oraclesu -oracle$lsnrctl stop $lsnrctl start sqlplus /nolog conn /as sysdba(connected) startup 42.安装软件...
more、less 分页显示文本文件内容 head、tail 显示文件头、尾内容 ctrl+alt+F1 命令行全屏模式 2.系统管理命令 stat 显示指定文件的详细信息,比ls更详细 who 显示在线登陆用户 whoami 显示当前操作用户 hostname 显示主机名 uname 显示系统信息 top 动态显示当前耗费资源最多进程...
10, question: difference between unix and other main-frame os. 11, Jobs A process is an executing program identified by a unique PID (process identifier). Jobs are processes which are started by a shell. The shell keeps track of these in a job table. The jobs command shows a list of ...
16. bzip2 command examples To create a *.bz2 compressed file: $ bzip2 test.txt To uncompress a *.bz2 file: bzip2 -d test.txt.bz2 More bzip2 examples: BZ is Eazy! bzip2, bzgrep, bzcmp, bzdiff, bzcat, bzless, bzmore examples 17. unzip command examples To extract a *.zip compressed...
7. vim command examples Go to the 143rd line of file $ vim +143 filename.txt Go to the first match of the specified $ vim +/search-term filename.txt Open the file in read only mode. $ vim -R /etc/passwd More vim examples:How To Record and Play in Vim Editor ...
less file1 类似于 'more' 命令,但是它允许在文件中和正向操作一样的反向操作 head -2 file1 查看一个文件的前两行 tail -2 file1 查看一个文件的最后两行 tail -f /var/log/messages 实时查看被添加到一个文件中的内容 十二、文本处理 cat file1 file2 ... | command <> file1_in.txt_or_file...
More ssh examples:5 Basic Linux SSH Client Commands 5. sed command examples When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command. ...