Bash - Display information about the system your using

function machine() { echo -e "\nMachine information:" ; uname -a; echo -e "\nUsers logged on:" ; w -h; echo -e "\nCurrent date :" ; date; echo -e "\nMachine status :" ; uptime; echo -e "\nFilesystem status :"; df -h; }; machine;

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.