how to reboot, logout or shutdown linux machines from command line

Options to Shutdown Linux

All desktop environments has menu options to shut down and reboot machines. Most times there are also keyboard shortcuts that the X or the desktop support that allow you to shut down machines. The most commonly used keyboard shortcut is Ctrl+Alt+Del. Although these menu options and keyboard shortcuts makes it easier, it is beneficial to know the command line options…

how to enable and disable colors in linux command shell

ls command in color

Many modern command shells and commands are capable of displaying its output in color. Most times it is a combination of the shell and the command that provides the ability to display the text in color. The terminal displays these colors in response to some ANSI encoded control sequences generated by the command as part of its output. You can…

how to determine the current command line shell in linux

Reload shell profile environment in linux

Linux has many different command line shells that can be used. And different Linux distros use different shells as default. Sometimes you might also be using different shells in different terminals. You can use sh, bash, csh, ksh, zsh among the very many that are available. Most times it is not obvious from the command line as to what shell…

how to reload shell profile without restarting the command prompt in linux

Reload shell profile environment in linux

In Linux there are several options that can be set in the shell profile or shell environment, such as the environment variables such as path and classpath or prompt display among others. Every time you edit one of the shell profile files, you need to reload shell profile or┬áthe command shell itself for the modifications to take effect. You can…