Tutorials :: Terminal


The ls command - Unleashed!
Dec. 30, 2011, 10:04 p.m. by Nitin Venkatesh

The ls command is used to list the files present in a particular directory/directories. By default it lists the files present in the current directory by their names providing no extra information. The output might sometimes be color-coded (depending on the way your .bashrc and .bash_profile are configured). The point of this blogpost is that the ls command is much ...


Understanding File Permissions
Dec. 30, 2011, 9:48 p.m. by Nitin Venkatesh

Access to every file/directory in Linux is beautifully controlled by permissions. Many times we are not able to wrap our heads around file permissions (in the beginning stages anyway), but it’s not all that complicated. So let’s see what the fuss is about. The ls -l command provides a line like the following for each file or directory. drwxr-xr-x 4 ...


Terminal is your friend - Basic Linux Commands - Part II : Using apt-get and apt-cache
Dec. 19, 2011, 4:06 p.m. by Nitin Venkatesh

In this section we’ll be discussing the different ways in which we can use the apt-get package management tool to install/remove and do some other cool things and the apt-cache tool as well. The apt package management tools are used in Debian and other Debian-based distros like Ubuntu. The examples were executed on a machine running Ubuntu 11.10. sudo apt-get ...


How to Write a manpage
Nov. 2, 2011, 3:17 p.m. by Nathan Osman

Writing a manpage is often looked upon as a very difficult task but this doesn't necessarily need to be the case. I was recently faced with the unpleasant task of needing a manpage for a small Python script I was writing. Although there are some tools that can automate this process or generate manpages from other files, I figured it ...


Basic Linux Commands - Part 1
Oct. 8, 2011, 11:40 a.m. by Nitin Venkatesh

This post will be dealing with gathering basic information of your system, as to provide the most common information that’s required when posting in forums/AskUbuntu and other such places. lsb_release -a && uname -a These two commands provide you with information about the the version of the Linux Kernel, the distribution, version of the distrubution, architecture and so on. nits@nits-workstation:~$ ...


Setting Environment Variables in Linux (Using Bash Shell) : How-To
Sept. 20, 2011, 12:12 p.m. by Nitin Venkatesh

Hello! I am Nitin from Chennai, India. I am a guy who loves Linux especially Ubuntu mainly for its ease-of-use and the awesome community and I strive my best to be an advocate for it. I am highly excited and nervous to be making my first post here. Enjoy your read and hope I made sense. Now onto the topic. ...


Lets give it a bash
July 7, 2011, 3:39 p.m. by Allan Shand

Hello everyone (mum) this is my first post for 2buntu. You could probably guess this after reading the first few lines its not exactly Shakespeare. By this time you might be wondering what I'm actually doing here as I have been for most of the last 24 Hours. However never fear I do have something to write about other than ...


Awesome alias for rm. Never delete by accident again!
June 15, 2011, 10:23 p.m. by Roland Taylor

I found this little gem today after I hosed my ~/.config by a typo. Frustrated, I tried recovery, but would have needed to restart, which I hardly do. So, I ran rm --help to see what options I had to avoid a repeat. Here's my solution: <blockquote>alias rm = "rm -i"</blockquote> That's it :)! Now rm will ask for confirmation ...


Newer →