2008年2月6日水曜日

Send message to all users

If you are root user, you could send message to all users who logged in with wall command.

root user

# wall "We will have a meeting tomorrow noon."

Broadcast message from root (pts/0) (Wed Feb 6 19:06:05 2008):

We will have a meeting tomorrow noon.


user

$
Broadcast message from root (pts/0) (Wed Feb 6 19:06:05 2008):

We will have a meeting tomorrow noon.

2008年2月5日火曜日

If you have small hands

Is enter key too far? So, use ctrl-m instead. It works same as enter key. Also, ctrl-h works same as Backspace key.

2008年2月2日土曜日

How to read html files

There are many html files in the system. You could read them with text base web browser. There are elinks and lynx. The elinks has more functions.

You could move forward with ctrl-f, back with ctrl-b.

$ elinks /usr/share/doc/centos-release-4/RELEASE-NOTES-en.html

$ lynx /usr/share/doc/centos-release-4/RELEASE-NOTES-en.html

2008年2月1日金曜日

How to show your version of distribution

Many Linux distributions has file name with release in /etc.

$ ls /etc/*-release
/etc/redhat-release


If you open the file, it tells you a version of the distribution.

$ cat /etc/redhat-release
CentOS release 4.6 (Final)



2008年1月31日木曜日

How to show your CPU architecture

uname command shows your system information.

$ uname -a
Linux myserver.example.com 2.6.9-61.EL #1 Wed May 2 13:50:59 EDT 2007 i686 i686 i386 GNU/Linux


if you use -m option, it only shows your CPU architecture.

$ uname -m
i686