Skip to main content

Posts

Showing posts from July, 2015

SSH/Terminal screen display

Display information during login on terminal. To display hostname and date on terminal after user login. 1. Open .bashrc file found in the home directory 2. Add below lines in at the end of the files echo "Hostname:" hostname echo "Uptime:" uptime echo "Server details:" uname -a date Now when you login  will be have following displayed on the terminal. Hostname: ajay-pc Uptime:  22:22:43 up 12:40,  7 users,  load average: 0.12, 0.12, 0.12 Server details: Linux ajay-pc 3.16.0-44-generic #59~14.04.1-Ubuntu SMP Tue Jul 7 15:07:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Thu Jul 30 22:22:43 IST 2015