how to create an XML sitemap using wget and shell script

Snippet from an XML Sitemap

A SiteMap or Site Map is a file that lists the pages of a webpage that are accessible to users and search engines. This can be in any format as long as whoever is reading it can understand the format. There are mainly two types of format that are used when creating a site map: XML and HTML. All websites…

how to change the default shell of an user in linux?

finding default shell in linux

There are several different command shells available to you in Linux. bash, csh, tcsh, ksh, zsh, sh and fish are just a few of the popular ones that can be used by an user from the command line. As a system administrator, you can specify a default shell for the user. The user can however choose the run another shell…

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. The environment variable can be the path, the classpath or prompt display among various 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…