LinuxDay 2006

October 18th, 2006

In Italy, every year, there’s a day named “Lin­ux­Day” where we pro­mote the use of Linux and free soft­ware. Every LUG (a Linux User Group) orga­nize this event in their city.

I am a member of the LUG of my city (LUG­Bari), and this year I will talk about Inkscape. If you want to see the full pro­gram, follow this link: http://​lug​bari.​org/​b​i​n​/​v​i​e​w​/​M​a​i​n​/​L​i​n​u​x​D​a​y2006

And if you want to meet me, come and join the event!

0 Comments, tagged with Linux

Bash tips

October 1st, 2006

Bash has some useful short­cuts that most of users are unaware of. Here I’m describ­ing some of them that I found very very useful:

  1. Screen clear: are you tired of typing clear all the times you want to get your screen cleared? Hint: press ctrl + L.
  2. Reverse search: sometimes could happen that you have to retype some command you previously typed. So why don’t look for the command in the history? Press ctrl + R and begin typing the command. Bash should autocomplete it!
  3. Command substitution: if you wrote your command and you typed a wrong letter, why to rewrite all the command? Just substitute the mistaken word. How? Use ^texttosobstitute^sobstitution. For example, if you typed apt-get updatke, you can fix it by typing as next command ^updatke^update (or simpler: ^tk^t).
  4. Latest action: do you want to repeat the last command? Just use !!. It will (re)execute the latest command you given.
  5. Latest parameter: and if you want to use once again the latest parameter you typed in the last command? !$ is made for you… For example, let suppose you renamed film.avi in my_new_divx.avi with mv film.avi my_new_divx.avi. If you want to see it you can just type mplayer !$. That’s all (and there’s !* that refers to all the argument passed in the previous command…).

I use these short­cuts from the time I’ve dis­cov­ered them and I found them very useful (espe­cially the number 1!). So, why don’t share such things with the other guy over here?

2 Comments, tagged with Linux

Microblogging

  • Funny thing: yesterday night I had an idea about a good blog post I could make. But now I completely forgot what that idea was about. 13 hours ago #
  • I think pownce has a little issue with caching since if I delete a message and I write a new one, it doesn't appear in my homepage. Nov 16, 6:34pm #
  • I didn't know that something like [(x,y) for x in range(10) for y in range(x)] was possible in Python. Nov 16, 3:45pm #
  • I'm about to go to the local LUG dinner: pizza for everyone. Nov 14, 9:15pm #
  • Lately I've been very interested in fast data structures with minimum memory usage. Just surprised to find out that list comprehension in Python are sometimes slower for large quantities of data than classic for loops. Still trying to understand why (if someone has a clue, please let me know). Nov 12, 12:44pm #
  • So wordpress was silently modifying HTTP request headers and I was getting a 400 when fetching Pownce RSS. Now everything works as expected on my blog, shame on WP. Nov 9, 3:58pm #
  • Experimenting with document language identification. Nov 6, 10:23pm #
  • So looks like I finally found an interesting topic apart from web development: information retrieval. Nov 3, 5:13pm #
  • Planning a trip to Bologna in December Nov 1, 5:24pm #
  • After today, I want to go as far as I can from Italy. Oct 29, 11:49am #

Search


« Authored by Giuliani Vito Ivan »