Linux command

  1. 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.

 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’

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值