System Admin  «Prev 

Banners and the uname command

Here are three different ways you can determine which version of UNIX you are using.
The images below use a Linux example, but the concepts are the same for all UNIX systems. The /etc/motd is a file on Unix and Linux systems that contains a "message of the day", used to send a common message to all users in a more efficient manner than broadcasting an e-mail message. Other systems might also have an motd feature

Pre-login banner: Most unix systems announce themselves with a banner before the login process.
On many systems, this pre-login message is simply the contents of the file /etc/issue.

Post-login banner: Many systems identify themselves following login with a header message describing the system.
You can modify this header by editing the file /etc/motd.

uname command: Finally, most versions of UNIX offer the uname command, which identifies the operating system.

-a option of the uname command displays all the information about the machine type and operating system version.

The output from the uname -a command has the following components: 1) The name of the operating system.

Second Component 2) name of the machine

Unix System Admin
Third Component: 3) Version of the operating system

Fourth component from the uname -a command.
4) The machine processor type

The -a option means all, but the various parts of the uname output can be extracted with other options.
The -m option gives you just the machine type.

The -n option gives you just the machine name

The -v command give you just the operation

Now the cursor is not blinking