2012-09-28

Useful #! commands


$ indicates terminal command         
# indicates a comment                   
Bold indicates "not installed by default"

$ lsusb      #list USB devices
$ lspci      #list all PCI devi
$ startx     #initialize an X session
$ more       #filter for paging through text one screenful at a time. (less gives more advanced).
$ less       #opposite of more; allows backward movement in the file as well as forward movement.


File commands

$ locate    #find files by name (for newbies I suggest the gui catfish -requires installation)
$ find      #search for files in a directory hierarchy
$ ls        #list directory contents
$ cd        #change directory
$ pwd       #print name of current/working directory
$ cp        #copy files and directories
$ rm        #remove files or directories
$ rmdir     #remove empty directories

2012-09-27

Take care of your eyes at the screen with Redshift

Before Redshit I was using f.lux [1] which seems to be broken in Ubuntu's Unity. I searched for an alternative & found positive reviews about Redshift, which is inspired by f.lux.

By default, redshift fetches your approximate location using the internet (geoclue method) & uses it. if you prefer to manually set it, check the help. And if you, like me, prefer it to use a preset location &/or other configuration (without having to do it every time you run your system), create a text file named redshift.config under your ~/.config/ directory. You can do this from the terminal:

cd ~/.config/
gedit redshift.config

In this file, copy & edit the content below: