Linux命令——getconf】的更多相关文章

转自:灵活使用getconf命令来获取系统信息 简介 getconf本身是个ELF可执行文件,用于获取系统信息 用法 getconf -a可以获取全部系统信息 对于这个命令,记住几个常用的信息获取方法就行 getconf PAGE_SIZE 查看系统内存分页大小 getconf LONG_BIT 看linux是32位还是64位最简单的方法 _CS_PATH Value for the PATH environment variable used to find commands. ARG_MAX…
运维工程师必会的109个Linux命令 版本1.0 崔存新 更新于2009-12-26 目录 1 文件管理 6 1.1 basename 6 1.2 cat 6 1.3 cd 7 1.4 chgrp 7 1.5 chmod 8 1.6 chown 9 1.7 comm 10 1.8 cp 10 1.9 cut 11 1.10 dd 12 1.11 diff 13 1.12 dir 14 1.13 dos2unix 16 1.14 egrep 17 1.15 fgrep 17 1.16 file…
几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核(假设cpu配置相同) more /proc/cpuinfo |grep "physical id"|grep "0"|wc -l cat /proc/cpuinfo | grep processor 1. 查看物理CPU的个数#cat /proc/cpuinfo |grep "physical id"…
从今天起,会在这里记一些我使用过的linux命令 =======I'm 分割线======= 11.查看某个端口号被哪个应用占用 netstat -apn|grep 端口号,lsof -i:端口号,netstat -tunlp | grep 端口号 10.查看某个进程(13/09/04) ps aux | grep app_name 9.剪切(13/07/25) mv /tmp/tomcat.zip /usr/local 8.tar解压到指定目录(13/07/24) tar -xzvf file…
DOS命令 1.查询端口占用情况:netstat -aon |findstr "8080"; 查看端口进程号: 2.查看进程号信息:   tasklist |findstr "9999"; 3.杀进程: taskkill -f -t -im javaw.exe; 4.修改mysql数据库密码: mysql>use mysql:mysql>UPDATE user SET password=PASSWORD('输入新密码') WHERE user='root…
性能测试常用的linux命令 linux测试nginx64bitredhatlighttpd 查看日志    awk '$4 ~/^\[27\/Nov\/2008:15:2[0-5]/ {print $0}' access_log |wc -l 查看日志中每秒产生多少个动态链接  tail -n 100000 /data1/logs/access.log | grep "06/Mar/2008:15:29:00" | wc -l 查看进程编号ps aux|grep nginx    …
允许非root用户使用“sudo” root身份登录系统,执行“visudo”,根据示例添加新的一个规则(记住输入的密码是当前用户密码,而不是root密码)#不需要密码执行sudo命令hadoop        ALL=(ALL)       NOPASSWD: ALL 日期 时间戳转日期date -d '1970-01-01 UTC 1312438633.724 seconds' +"%Y-%m-%d %T" #显示现在日期echo `date -d now +%Y%m%d` #显示…
我们可能每天都会要使用到很多的 Linux 命令行. 我们也会网络上知晓一些使用它们的小技巧,但是如果我们没有时常来进行练习,就有可能会忘掉怎么去使用它们. 所以我就决定把那些你可能会忘记的小提示和小技巧,或者对你而言可能是全新的东西都列表来. 将输出内容以表格的形式显示出来 有时,在你看到命令行执行的输出时,因为字符串过度拥挤(比如说 mount 命令的输出)导致输出内容难以识别.如果我们看到的内容是一张表格会如何呢?其实这是很容易做到的! mount | column –t: 在此例中,由于…
[注意]:命令[compgen -b]可以列出所有当前系统支持的命令. 109个Linux命令 目录 1       文件管理... 5 1.1          basename. 5 1.2          cat 5 1.3          cd. 5 1.4          chgrp. 5 1.5          chmod. 6 1.6          chown. 7 1.7          comm.. 7 1.8          cp. 7 1.9        …
Linux命令 目录 1       文件管理... 5 1.1          basename. 5 1.2          cat 5 1.3          cd. 5 1.4          chgrp. 5 1.5          chmod. 6 1.6          chown. 7 1.7          comm.. 7 1.8          cp. 7 1.9          cut 8 1.10        dd. 8 1.11        di…