Firefox 16, a treat for developers http://t.co/cnd27CzT
10 great and powerful Linux commands you may need to know
Command line is more powerful because you can do lot with them, you can tell your computer exactly what you want and get the appropriate answer.
That is why most of us use the terminal at least once a day. Today we will see another List of useful commands, i`m sure that most of you didn`t hear about them before. Lets see .
1- Run the last command as Root
sudo !!
2- Save a file you edited in vim/vi without the needed permissions
:w !sudo tee %
If you opened a file for edit and when saving you noticed that you forgot to open file as root, the command above is the solution.
3- Runs previous command but replacing : ”foo” by “bar”
^foo^bar
If you did run a long command and you noticed that you made a mistake, to correct the command you can replace only the mistake by the correct word without the need to run the whole command again.
Another alternative to the above command is:
!!:gs/foo/bar
As opposed to ^foo^bar, which only replaces the first occurrence of foo, this one changes every occurrence
4- Short and elegant way to copy or backup a single file before you edit it.
cp filename{,.bak}
5- mtr, better than traceroute and has ping combined
mtr unixmen.com
mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.
6- Empty a file without removing it
> file.txt
7- Execute command without saving it in the history
<space>command
8- Clear a terminal screen
ctrl-l
9- List of commands you use most often
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
10- Get your external IP address.
curl ifconfig.me
This is all for today, enjoy
-
-
-
-
-
-
http://chadmccullough.myopenid.com/
-
-
-
-
http://twitter.com/shobon
-
-
-
http://colar.myopenid.com/
-
http://vrillusions.com/
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comment(s) |
Scan Your Home Network With Nmap : Who should read this article? Everyone who is interested in computer security and computer networkin...0 comment(s) |
How to use Remote Desktop in Ubuntu : Sometimes, we need to access our computer from other locations when we’re not at home and such. This...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Recent Posts
- Secure File from Removal in Linux and Unix
- How to Install Nginx on FreeBSD 9.x
- Create a Launcher in Ubuntu Using Bash
- Scan Your Home Network With Nmap
- Steganography- Hide Your Files Inside An Image in Linux
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
Recent Comments



















Snake
| #
Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)
Blawer
| #
Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again
piCool
| #
Great ! we have another another master trick :-)
Yilmaz Ulugtekin
| #
Just delete the space after the slash (/) it will work.
Pat L
| #
I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.