b-initials

b-initals has moved to http://bapoumba.wordpress.com/
XML Feed

More little tips and tricks

Updating a previous blog entry:

  • To keep the terminal available even after launching an application, append the command with &. Ex: nautilus &
  • To launch an application from a terminal and keep the application running even upon closing the terminal, add nohup before the command. Can be used with the previous tip. Ex: nohup nautilus &
  • which returns the pathnames of the files which would be executed in the current environment (from man which). Meaning if you have installed a package and you do not know how to start it, which will return the full path and name of the executable file
  • sudo ln -s /home/your_login/.themes /root/.themes
    sudo ln -s /home/your_login/.icons /root/.icons
    sudo ln -s /home/your_login/.fonts /root/.fonts

    will have root applications use your user theme, icons and fonts (replace your_login with your user login)

3 Responses to “More little tips and tricks”

  1. Carl van Tonder Says:

    Your first two tips are the wrong way ’round, I think.

    command &
    is the equivalent of Ctrl+Z then bg during a program; it runs it as a background job. If you close the terminal, the program dies too.

    nohup command
    prevents command from being treated as a sub-process of the shell running it. Hence you can open gnome-terminal, run `nohup gedit`, close the terminal, and gedit will still be running.

  2. bapoumba Says:

    Hello Carl,
    You are right :/
    Sorry, I edit that right away. Thanks a lot.

  3. Carl van Tonder Says:

    No problem. The tip about root themes was certainly handy. And `which` was the one tool I probably wasn’t using enough (though you may want to mention whatis, because it’s also pretty handy.

Leave a Reply

You must be logged in to post a comment.

b-initials is powered by WordPress and a Fluid-Web-1 modified theme

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.