随笔分类 - 问题
摘要:Red lines but no compilation errors VS 2017
阅读全文
摘要:参考:How to find man pages for C structs (struct sockaddr_in)? 方法一 最简单的方法,Google 根据搜索到的结果可知,要查找的关键字在7手册页的ip项中 方法二 快速搜索 man -k keyword 暴力搜索,查找所有man手册 man
阅读全文
摘要:ubuntu可以使用apt-get命令来安装匹配的内核头文件。 1、首先,使用dpkg-query命令检查是否有可用的内核头文件。 $ dpkg-query -s linux-headers-$(uname -r) 2、接着使用下面的命令安装匹配的内核头文件。 $ sudo apt-get inst
阅读全文
摘要:转自:How to solve Port 443 in use by "C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" in xampp control panel. XAMPP安装的时候会提示你禁用UAC,我没禁
阅读全文
摘要:Ubuntu CentOS 除了这两种,如果还提示相应章节找不到指定命令,100%是你拼写错了
阅读全文
摘要:参考:Fix ‘E: Could not get lock /var/lib/dpkg/lock’ Error in Ubuntu [Quick Tip] 今天Ubuntu虚拟机刚开机,我准备装个man手册查看一些系统API,结果报了这么个错误。 参考上面文章,我遇到问题的原因是系统由apt进程在执
阅读全文
摘要:方法1 uname -i 方法2 getconf LONG_BIT 方法3 CentOS 6.X及低版本 file /sbin/init CentOS 7.X file /lib/systemd/systemd 方法4 对于Debian或者基于Debian的发行版使用 dpkg --print-ar
阅读全文
摘要:What is the difference between inode number and file descriptor?
阅读全文
摘要:$ last | grep pts | awk '{print $1}' | sort | uniq -c | column 12 jdoe 41 mdoe 25 shs 19 aguy
阅读全文
摘要:参考:UNIX / Linux Man Command Example to View Man Pages 今天再看别人博客的时候,先仔细看看printf命令是怎么玩的,于是man手册查了下。结果搜出来的确释C下面的printf函数,那我想看printf命令咋整呢? 简单的说,man手册也是分块的,
阅读全文
摘要:转自:How To Find The Port Number Of A Service In Linux 方法一:/etc/services文件 用法 方法二:getent命令 [root@localhost bin]# getent services ssh ssh 22/tcp getent s
阅读全文
摘要:参考:Does the root account always have UID/GID 0? 这实际上是2个问题 Does the superuser account always have uid/gid 0/0 on Linux? Yes. As is pointed out by Rich
阅读全文
摘要:参考:How to follow links in linux man pages? 前言 在使用man查看命令帮助的时候,有些文字下面会有下划线。给人的感觉是一个链接,但是又打不开。那么到底是不是链接呢? 此on-line非彼on-line 查看man man,里面对man的解释是on-line
阅读全文
摘要:转自:Yum安装报错:ERROR:dbus.proxies 环境: [红帽企业Linux.6.4.服务器版].rhel-server-6.4-x86_64-dvd(ED2000.COM).iso 安装时选用Software Development Workstation 问题描述: yum安装DHC
阅读全文
摘要:今天突发奇想冒出这么个问题,觉得很有必要写篇文章纪念一下。 以前我都是tail /etc/passwd,手动去查有多少个用户(包括活跃的 和 不活跃的),但是这种方法太蠢了。于是解决问题的漫长之旅开始了。。。。。。 按照由简到难的顺序展开 统计当前系统有多少活跃用户(没登陆的不算) 借助who命令
阅读全文
摘要:https://www.unix.com/shell-programming-and-scripting/125947-difference-between-dev-null-2-1-2-1-dev-null.html https://superuser.com/questions/1179844/
阅读全文
摘要:https://unix.stackexchange.com/questions/230887/what-does-dev-null-mean https://stackoverflow.com/questions/29142/getting-ssh-to-execute-a-command-in-
阅读全文
摘要:转自:https://blog.csdn.net/ricky_hust/article/details/8868131 最终可行的方法 在linux下没有单独的dig和nslookup的包,而是以bind的扩展扩展来安装的! 对于 fodora/centos/redhat yum install b
阅读全文
摘要:转载请注明出处:https://www.cnblogs.com/kelamoyujuzhen/p/9087725.html 这类问题归根到底就是软件源问题,Linux下安装软件不像windows。Linux软件管理知识参考:https://www.cnblogs.com/kelamoyujuzhen
阅读全文