An bash alias is nothing but the shortcut to commands. The alias command allows the user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display a list of all defined aliases. You can add user-defined aliases to ~/.bashrc file. You can cut down typing time with these aliases, work smartly, and increase productivity at the command prompt.
Our FAQ section is updated in last few days with new howtos:
FAQ & Howtos RSS Feed
Get intimated about our new howtos / faqs as soon as it is released via RSS feed.
nixCraft is on Facebook!
Not our Fan yet? We suggest you become one right away! Just visit our Facebook Page. Click on the “like” button.
Shell scripting is fun. It is useful to create nice (perhaps ugly) things (read as solutions) in shell scripting. Now Windows got Powershell. But how does PowerShell measure up to traditional shells like Bash?
In this article ComputerWorld chat to Chet Ramey about his experience maintaining Bash.
I use Google Calendar exclusively. However to access this product you need to use a web browser. There is nice program called gcalcli (Google Calendar Command Line Interface) which allows to access Google Calendar from bash shell. Now I can see an agenda using a specified start/end time and date from a shell prompt over ssh session 😀
gcalcli is a Python application that allows you to access you Google Calendar from a command line. It’s easy to get your agenda, search for events, and quickly add new events. Additionally gcalcli can be used as a reminder service to execute any application you want.
- List your calendars
- Show an agenda using a specified start/end time and date
- Search for calendar events
- “Quick add” new calendar events to your default calendar
- Run as a cron job and execute a command for reminders
- Work against specific calendars (default, owner, read-only)
- Color support
- unicode support
Download Google Calendar Command Line Interface
=> Visit official project page here
You can use “type” or “whereis” command to find out which command shell executes and to print binary (command) file location for specified command.
whereis command example
Display ls command location along with man page path:
ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz
type command example
Find out which command the shell executes:
type -a ls
ls is aliased to `ls –color=tty’
ls is /bin/ls
Related: How Linux or UNIX Understand which program to run – PART I and How BASH Shell Command Search Sequence Works
Most of you may be aware of old good DOS/2000/XP pause command. It is used display the prompt. It is used within a computer batch file and allows the computer to pause the currently running batch file until the user presses any key.