lsb_release -c # 查看版本代号:返回focal,表示当前系统版本为Ubuntu 20.04 LTS lscpu # 查看 CPU 架构的详细信息,包括型号、核心数、线程数、缓存大小等 lspci -nnk | grep -i vga -A3 # 显示显卡信息和它正在使用的内核驱动ubuntu-drivers devices# 列出系统识别的所有硬件和推荐的驱动程序。如果已安装适当的...
find . -path './cache' -prune -o -name "*.php" -exec grep -l "date_cache[$format]['lang']" {} \; #显示当前目录下不包含cache目录的所有含有“date_cache[$format]['lang']”字符串的php文件。 find . -type f -name \*.php -exec grep -l "info" {} \; 快速查找某个文件 where...
‘ -f2 查看内核 uname -a 查看Ubuntu版本cat /etc/issue 或 lsb_release -a 查看内核加载的模块 lsmod 查看PCI设备 lspci 查看USB设备 lsusb -v 查看网卡状态 sudo ethtool eth0 查看CPU信息 cat /proc/cpuinfo 显示当前硬件信息 sudo lshw 显示系统运行时间 uptime 查看硬盘的分区 sudo fdisk -l 硬盘分区...
sudo apt-get clean && sudo apt-get autoclean 清理无用的包 sudo apt-get check 检查是否有损坏的依赖 sudo apt-get clean 清理所有软件缓存(即缓存在/var/cache/apt/archives目录里的deb包) 查看软件xxx安装内容 #dpkg -L xxx 查找软件 #apt-cache search 正则表达式 查找文件属于哪个包 #dpkg -S filen...
I'm using an Arm-based CPU I'm using the IBM System Z platform I'm using Ubuntu 22.04 or later, and I only need .NET Install .NET through the Ubuntu feed. For more information, see the following pages: Important If you're using .NET 8 SDK and Ubuntu 22.04, understand that SDK ve...
Terminal Method: Check CPU temperature with sensors command To check the temperature in the terminal, you'd need to have the samelm-sensorspackage you saw in the previous method. Install it if you don't have it already. sudo apt install lm-sensors ...
make check sudo make install 4)配置动态链接,执行sudo ldconfig,到此,libpng16.so.16 安装成功 3.4 大型项目注意事项 编译文件的时候必须要-g ,以便于可以生成core文件; Linux系统需要设置core文件名称携带进城ID,否则出现第二次崩溃的时候会覆盖第一次崩溃的core文件;建议系统定期备份core文件,形式为core_id_time...
32、68.2.0/24 -p tcp -dport http# j DROP#21端口,规则插入到前面sudo iptables -t filter -I INPUT -s 3 -p tcp -dport ftp -j DROP安全检查本地是否存在安全隐患sudo apt-get install rkhuntersudo rkhunter -checkall如何安装杀毒软件sudo apt-get install clamavclamscan -r /Linux下可以使用的商...
wget http://iotedge-web.oss-cn-shanghai.aliyuncs.com/public/testingTool/link-iot-edge_env-check.sh sudo chmod +x ./link-iot-edge_env-check.sh sudo ./link-iot-edge_env-check.sh 说明 link-iot-edge_env-check.sh脚本在Link IoT Edge支持的平台需要以root权限运行,同时Link IoT Edge支持的平台...
查看cpu 信息 # CPU型号cat /proc/cpuinfo|grep name|cut -f2 -d:|uniq -c# 物理 CPU 个数cat /proc/cpuinfo|grep"physical id"|sort|uniq|wc -l# CPU核数 (物理CPU个数 * 每个CPU的核数)cat /proc/cpuinfo|grep"cpu cores"|uniq# 逻辑CPU个数 (物理CPU个数 * 每个CPU的核数 * 超线程数)cat...