Linux
E%3Dmc%B2
Thousand of time I have thought of you .My heart is going high into the air and flying with my blessing towards you .I don’t care loneliness. I am satisfied when you are happy and I am happy when I think of you!
展开
-
CentOS在线安装JDK
1.查看云端目前支持安装的jdk版本[root@localhost ~]# yum search java|grep jdkldapjdk-javadoc.noarch : Javadoc for ldapjdkjava-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environmentjava-1.6.0-openjdk-demo.x86_64 : OpenJDK Demosjava-1.6.0-openjdk-devel.x86_64 : OpenJDK转载 2021-02-20 15:29:08 · 238 阅读 · 0 评论 -
解决“/bin/bash^M: bad interpreter: No such file or directory”
在执行shell脚本时提示这样的错误主要是由于shell脚本文件是dos格式,即每一行结尾以\r\n来标识,而unix格式的文件行尾则以\n来标识。1.查看脚本文件是dos格式还是unix格式的几种办法:(1)cat -A filename从显示结果可以判断,dos格式的文件行尾为^M$,unix格式的文件行尾为$。(2)od -t x1 filename 如果看到输出内容中存在0d 0a的字符,那么文件是dos格式,如果只有0a,则是unix格式。(3)vi filename打开文件,执行 ..原创 2020-06-12 12:16:41 · 1676 阅读 · 0 评论 -
Linux系统下查看cpu、内存、进程、硬盘、网卡
系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# lspci -tv # 列出所有PCI设备# lsusb -tv ...原创 2017-05-27 11:02:38 · 1153 阅读 · 0 评论