bash

Recent in bash

How to find the exit code of the last executed command on bash using "?" environment variable

Every command or program returns an exit code to convey the execution status - success or failure. In Linux, programs return zero in case of success and a non-zero value in case of an error. If you want to find out the return value/exit status of the last executed command on bash, you can use the “?” environment variable.

How to change the Bash Command Prompt using PS1 variable

One of the first things I do after having a fresh Installation, is to change the command prompt to something I like. I know most of you linuxers would want to make the prompt look cooler than the usual "name-hostname: / $". But command prompt is not all about coolness, it serves a lot more useful purposes than it appears. In this howto, I will show you how to change your command prompt by editing PS1 environment variable and make it useful and cool at the same time .

Backup your MySQL databases automatically using Automysqlbackup

When I started managing a server, due to small database I always took manual backups, scarcely though. And because of my laziness in doing so, my fellow author, shredder12 constantly bugged me to do so. So, I started with weird entries in cron until I find this awesome script.

8 Bash Tricks you should know

You might have heard a lot of people say that linux shell is very powerful. But have you ever tried to think why do they say that. What secrets do they know about it that you don't? I bet most of you never think this way but if you want to know these so called secrets then follow this golden rule "The more you know about the shell, more you realize its true power". So, lets start with this article where I will tell you about some really cool features of bash that will make working on shell amazingly faster and more interesting for you.

Syndicate content