共 51 篇文章 |
|
# update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_91/bin/java 200# update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_111/bin/java 300.link currently points to /opt/install/jdk1.8.0_111/bin/java/opt/install/jdk1.8.0_91/bin/java - priority 200/opt/install/jdk1.8.0_111/bin/java - priority 300C... 阅347 转0 评0 公众公开 18-06-21 10:39 |
service# systemctl disable httpd.service├─system.slice└─basic.target ├─firewalld.service ├─microcode.service ├─rhel-autorelabel-mark.service ├─rhel-autorelabel.service ├─rhel-configure.service ├─rhel-dmesg.service ├─rhel-loadmodules.service ├─paths.target ├─slices.target │ ├─-.slice │ └─sys... 阅229 转0 评0 公众公开 18-06-20 22:16 |
linux命令总结之seq命令功能:seq [选项]... 尾数seq [选项]... 首数 尾数seq [选项]... 首数 增量 尾数选项:?[root@Gin scripts]# seq -f "%3g" 9 11 9 10 11.[root@Gin scripts]# seq -f "str%03g" 9 11str009str010str011.[root@Gin scripts]# seq -w 98 101098099100101.[root@Gin scripts]# seq -s" "-f&... 阅23 转0 评0 公众公开 18-06-19 22:46 |
-g 用户组 指定用户所属的用户组。此命令新建了一个用户gem,该用户的登录Shell是/bin/sh,它属于group用户组,同时又属于adm和root用户组,其中group用户组是其主组。普通用户修改自己的口令时,passwd命令会先询问原口令,验证后再要求用户输入两遍新口令,如果两次输入的口令一致,则将这个口令指定给用户;不同Linux 系统对用户组的规定有... 阅69 转0 评0 公众公开 18-06-19 09:51 |
查看CentOS版本信息。(一) 查看已经安装的CentOS版本信息。(二)查看系统是32位或者64位的方法 1. getconf LONG_BIT or getconf WORD_BIT 输入:getconf LONG_BIT 返回结果:64 输入:getconf WORD_BIT 返回结果:32 分析:32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系... 阅272 转1 评0 公众公开 18-06-13 11:09 |
SW Sep10 0:00 [kswapd]具体命令解释如下: 1)ps a 显示现行终端机下的所有程序,包括其他用户的程序。3)ps c 列出程序时,显示每个程序真正的指令名称,而不包含路径,参数或常驻服务的标示。8)ps -N 显示所有的程序,除了执行ps指令终端机下的程序之外。9)ps s 采用程序信号的格式显示程序状况。11)ps -t<终端机编号> ... 阅17 转0 评0 公众公开 18-06-12 17:57 |
使用-x dev参数防止find搜索其他分区find .-size 0 -exec rm {} \;删除尺寸为0的文件11. xargs与-exec功能类似find /data -type f |xargs grep -i “Mary”在所有文件中检索字符串Maryls *~ |xargs rm -rf 删除所有以~结尾的文件。--exclude=FILE_PATTERN skip files and directories matching FILE_PATTERN.--exclude-from=FILE skip files... 阅2260 转0 评0 公众公开 18-06-06 23:12 |
lichao@ubuntu:command$ cat test1.txtlinuxisfunlichao@ubuntu:command$ cat test2.txta verypopular os,linuxlichao@ubuntu:command$ cat test3.txtwhatthefxxklichao@ubuntu:command$ grep -l linux test1.txt test2.txt test3.txttest1.txttest2.txtlichao@ubuntu:command$ grep -L linux test1.txt test2.txt test3.txttest3.txt12. 打开... 阅90 转0 评0 公众公开 18-06-06 17:36 |
grep ''''''''linux'''''''' test.txt.[root@localhost test]# grep -n ''''''''linux'''''''' test.txt.[root@localhost test]# grep -n ''''''''linux'''... 阅13 转0 评0 公众公开 18-06-05 22:18 |
# systemctl list-unit-files --type=serviceUNIT FILE STATE arp-ethers.service disabledauditd.service enabled autovt@.service disabledblk-availability.service disabledbrandbot.service static collectd.service disabledconsole-getty.service disabledconsole-shell.service disabledcpupower.service disabledcrond.service enable... 阅51 转0 评0 公众公开 18-06-01 22:12 |