Linux command
2016-06-21 12:27
337 查看
check memory :
top
free -m
vmstat -s
SYNOPSIS
mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr …
mail [-dEIiNnv] -f [file]
mail [-dEIiNnv] [-u user]
DESCRIPTION
mail is an intelligent mail processing system which has a command syntax reminiscent of ed(1) with lines replaced by messages.
方法一:
/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk ‘{print $2}’|tr -d “addr:”
or
/sbin/ifconfig|sed -n ‘/inet addr/s/^[^:]:([0-9.]{7,15}) ./\1/p’
方法二:
local_host=”
local_ip=
方法三:
local_host=”
nslookup -sil $local_host 2>/dev/null | grep Address: | sed ‘1d’ | sed ‘s/Address://g’
top
free -m
vmstat -s
SYNOPSIS
mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr …
mail [-dEIiNnv] -f [file]
mail [-dEIiNnv] [-u user]
DESCRIPTION
mail is an intelligent mail processing system which has a command syntax reminiscent of ed(1) with lines replaced by messages.
The options are as follows: -a Specify additional header fields on the command line such as "X-Loop: foo@bar" etc. You have to use quotes if the string contains spaces. This argument may be specified more than once, the headers will then be concatenated. -b bcc-addr Send blind carbon copies to bcc-addr. -c cc-addr Send carbon copies to list of users. cc-addr should be a comma separated list of names. -d Causes mail to output all sorts of information useful for debugging mail. -E Don't send messages with an empty body. -f Use an alternate mailbox. Defaults to the user's mbox if no file is specified. When quit, mail writes undeleted messages back to this file. -I Forces mail to run in interactive mode, even when input is not a terminal. In particular, the special ~ command character, used when sending mail, is only available interactively. -i Ignore tty interrupt signals. This is particularly useful when using mail on noisy phone lines. -N Inhibits initial display of message headers when reading mail or editing a mail folder. -n Inhibits reading /etc/mail.rc upon startup. -s subject Specify subject on command line (only the first argument after the -s flag is used as a subject; be careful to quote subjects containing spaces). -u user Equivalent to: $ mail -f /var/mail/user except that locking is done. -v Verbose mode. The details of delivery are displayed on the user's terminal.
方法一:
/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk ‘{print $2}’|tr -d “addr:”
or
/sbin/ifconfig|sed -n ‘/inet addr/s/^[^:]:([0-9.]{7,15}) ./\1/p’
方法二:
local_host=”
hostname --fqdn”
local_ip=
host $local_host 2>/dev/null | awk '{print $NF}'
方法三:
local_host=”
hostname --fqdn”
nslookup -sil $local_host 2>/dev/null | grep Address: | sed ‘1d’ | sed ‘s/Address://g’
相关文章推荐
- Linux socket 初步
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- Linux 下无损图片压缩小工具介绍