Tag Archives: Terminal



Courtesy of nixpal.com


file /sbin/init




free -m


grep MemTotal /proc/meminfo

for more detailed info you can try:

cat /proc/meminfo


grep MemTotal /proc/meminfo

if you prefer to monitor your RAM in real time.


Courtesy of validwebs.com






sudo gedit /etc/sudoers



sudo nano /etc/sudoers


your-username ALL=(ALL:ALL) ALL


And you will obtain something similar to this:

# User privilege specification
your-username ALL=(ALL:ALL) ALL

Try it! (..if you need…)




Create ‘alias’ (shortcuts to commands) using Linux Sophisticated Commands

Long sophisticated instructions are usually not solely tough to recollect but in addition  take a lot of time to be typed. When it’s a must to use them on day by day foundation, you turn into annoyed when typing them repeatedly and again… So, ‘alias’ are extra appropriate for lengthy and complex commands.

Let’s think about an example.

To find the top 10 largest files in your system, you can set the next ‘alias’:

alias top10files=”find . -type f -exec ls -sh {} \; | sort -n -r | head -10”

You can even combine different instructions with ‘alias’.  As an illustration, if you happen to often use ‘tail’ and direct its output to file to later view that file, you may set a very simple ‘alias’ to do this cumbersome operation in 1 word:

alias Tail=”tail /var/log/messages > hello.txt;cat hello.txt”

Now just enter ‘Tail’ and voila! All is done at once.

You need to use any file with tail and direct its output and you’ll even use ‘nano’ or ‘vi’ to view/edit its output.

Here’s one other example… ‘alias’ to connect to a remote server:

alias any_name=”ssh -l -p ”

You possibly can even create ‘alias’ on your bash scripts, like:

alias clc=”sh /home/user/myscripts/calc.sh”

Now that you have set a number of totally different ‘alias’  you may want to test that which ‘alias’ are set in your system.  To do that, simply difficulty the next command:


and it will list all the set ‘alias’ you have.

To remove an ‘alias’, just issue the ‘unalias’ command, like:

unalias Google

and now typing Google in Terminal will do nothing (as it was set with lynx).

To remove all the ‘alias’, issue the following command and all the ‘alias’ are gone:

unalias -a

We have mentioned the way in which of setting the ‘alias’ for different sorts of commands.  However setting ‘alias’ in this approach be temporary.  While you reboot you PC, all the ‘alias’ which you will have set will probably be gone.  This does not mean that it’s a must to set all of the ‘alias’ each time you boot your PC.  You probably have set an ‘alias’ and you favored it a lot that you really want it to completely reside in you PC, simply add this alias in ‘.bashrc’ file in you dwelling directory. For example, if you would like ‘alias’:

Set up <software_name>

to permanently reside in your PC then user your favorite text editor and add the following line in your ‘~/.bashrc’ file:

alias Install=”sudo apt-get install”

Now this ‘alias’ will not vanish into thin air when you reboot your PC. Only those ‘alias’  which are listed in ‘~/.bashrc’ file will be permanent.

This information is just a preview about ‘alias’.  It’s just about primary ways of using ‘alias’ to make your life simpler.  ‘GNU alias’ is a instrument which can simplify your life immensely.  But sadly this device isn’t given the attention it deserves.  Briefly, it is such a strong tool that when you give it proper time, it could possibly make you overlook typing. AddThis mp3 link

Ubuntu to Windows XP folder sharing

Computer networks are sometimes comprised of various methods, and while operating a network made up fully of  Ubuntu desktop and server computer systems would definitely be enjoyable, some community environments must consist of both Ubuntu and Microsoft Windows systems working collectively in harmony.
When making an Ubuntu shared folder that was created with NTFS be accessible to Windows XP steps. Run the NTFS configuration tool on the drive.
It is advisable have admin rights to do that modification.
Select: Application –> Accessories –>Terminal
then type the following:

sudo gedit /etc/samba/smb.conf

In the [global] section, add the following line:

usershare proprietor only = false

AddThis mp3 link

How to uninstall software on Ubuntu

UbuntuInstalling software on Ubuntu is really easy but sometimes we can have problems to uninstall it if we have not used the Package Manager (Synaptic till Ubuntu 9.04 and later through the Software Center) or a .deb package. To fastly uninstall all the software you do not need or you are not fond of, you can type in the Terminal:

sudo dpkg -r your_file

An alternative and powerful way is typing:

sudo apt-get remove your_file

(where your_file it is the name of the software you want to remove)

or, if you want to completely cancel also the configuration files:

sudo apt-get --purge remove your_file

If you want to check what software is installed on you Ubuntu you can use:

dpkg --list

and you will obtain a complete list of software and a very short summary for each package. AddThis mp3 link

