随笔分类 - Linux / Linux命令
摘要:~ # who root pts/0 00:03 Apr 3 14:57:55 192.168.30.166 root pts/1 00:00 Apr 3 14:39:31 192.168.30.166 ~ # ~ # w USER TTY IDLE TIME HOST root pts/0 00:
阅读全文
摘要:一次搞定 Linux systemd 服务脚本 - 知乎 (zhihu.com) # service文件目录 /etc/systemd/system/mantis-stat.service # 文件内容 Description=mantis-stat After=network.target [Se
阅读全文
摘要:修改Ubuntu20.04 、Centos7.6的DNS_ubuntu20.04配置dns-CSDN博客
阅读全文
摘要:使用sudo su syan@syan:~$ sudo su [sudo] password for syan: root@syan:/home/syan#
阅读全文
摘要:~ # netstat -anp|grep :22 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2254/dropbear tcp 0 0 192.168.10.228:22 192.168.30.166:5498 ESTABLISHED 27444/dropbear t
阅读全文
摘要:# CPU root@performance:~# pidstat -u 1 -p 3384955 Linux 5.10.0-10-amd64 (performance) 01/26/2024 _x86_64_ (48 CPU) 09:20:37 AM UID PID %usr %system %g
阅读全文
摘要:root@performance:~# alias -p alias ll='ls $LS_OPTIONS -l' alias ls='ls $LS_OPTIONS' alias python='python3' root@performance:~# linux alias 命令 查看系统设置的命
阅读全文
摘要:root@debian:~/daizc/generate_mantisreport# echo $SHELL /bin/bash root@debian:~/daizc/generate_mantisreport#
阅读全文
摘要:root@debian:~/xxx/xxx# lsof +D /root/ |grep a.txt rsyslogd 9151 root 1w REG 8,1 18814406751 135106 /root/a.txt root@debian:~/xxx/xxx#
阅读全文
摘要:xlspci和lspci都是用于显示PCI设备信息的命令,但它们的使用场景和功能有所不同。 xlspci是X server软件包的一部分,主要用于显示与PCI总线相关的设备列表。它列出了当前系统中已安装的所有PCI设备的信息,包括设备的制造商、设备ID、修订号、设备名称等,对于系统管理员和硬件开发者
阅读全文
摘要:您可以使用Linux命令行工具dd来创建10GB大小的文件。以下是创建10GB文件的命令: dd if=/dev/zero of=file.img bs=1G count=10 在上述命令中,if参数指定输入文件为/dev/zero,这是一个特殊的文件,读取它会返回空字符(即零)。of参数指定输出文
阅读全文
摘要:Linux可以通过以下几种方式查看已安装的.ko格式的包: 使用lsmod命令查看。 查看/lib/modules/目录下的内容。 查看/sys/module/目录下的内容。
阅读全文
摘要:~ # cat /proc/cpuinfo | grep "model name" model name : Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz model name : Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
阅读全文
摘要:教你一招在 Windows、Linux和Mac中检查和清除ARP缓存 - 知乎 (zhihu.com) 清除整个 ARP 表 ip -s -s neigh flush all 删除特定地址的 ARP 记录 arp -d <ip-address> 查看Linux中的ARP表 arp -n
阅读全文
摘要:https://blog.csdn.net/weixin_43025343/article/details/131368232 linux下确认裸盘是否使用-渐入佳境 - 飞翔的小胖猪 - 博客园 (cnblogs.com) 字符设备:提供连续的数据流,应用程序可以顺序读取,通常不支持随机存取。相反
阅读全文
摘要:Linux查看文件编码格式_linux查看文件格式_wang.zhiyuan的博客-CSDN博客 cat或vim查看文件乱码,file一下文件格式 root@debian:/xxx# file xxx.txt xxx.txt: ISO-8859 text# 然后使用,查看就不乱码vim "+e ++
阅读全文
摘要:1、linux 下计算md5值 [root@master yl]# md5sum CentOS-74-x86_64-1810.iso 6aab82e407bded0f611842952cd5067d CentOS-74-x86_64-xdja-v1.1.iso 2、Windows下计算md5值 ce
阅读全文
摘要:物理机: [root@hadoopdemo bin]# dmidecode -s system-product-name PowerEdge R710 虚机: [root@yancao ~]# dmidecode -s system-product-name VMware Virtual Platf
阅读全文
摘要:[root@hadoopdemo back]# df -h /var/lib/jenkins Filesystem Size Used Avail Use% Mounted on /dev/sdb1 7.0T 729G 5.9T 11% /data [root@hadoopdemo back]#
阅读全文