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

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

2) 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.

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

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

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

6) Second Component 2) name of the machine

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

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

9) 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.

10) The -n option gives you just the machine name

11) The -v command give you just the operation

12) Now the cursor is not blinking