16 July 2011
Kill Emacs (save-buffers-kill-terminal).
On a text terminal, suspend Emacs; on a graphical display, “minimize” the selected frame (suspend-emacs).
When a project represented by a (sub)tree is finished, you may want to move the tree out of the way and to stop it from contributing to the agenda. Archiving is important to keep your working files compact and global searches like the construction of agenda views fast. The most common archiving action is to move a project tree to another file, the archive file.
C-c C-x C-a
Archive the current entry using the command specified in the variable org-archive-default-command.
C-c C-x C-s or short C-c $
Archive the subtree starting at the cursor position to the location given by org-archive-location.
The default archive location is a file in the same directory as the current file, with the name derived by appending _archive to the current file name. For information and examples on how to change this, see the documentation string of the variable org-archive-location. There is also an in-buffer option for setting this variable, for example
save command history across terminals with add PROMPT_COMMAND="history -a; history -n" in your ~/.bashrc
found at reddit
more shortcuts at keyxl.com
put it into ~/.bashrc to make the change permanent
more CDPATH information.
13 July 2011
12 July 2011
To work in Ubuntu 11.04 :
1) sudo apt-get install gnome-gmail
2) vim ~/.local/share/applications/mimeapps.list and add:
Set your nick name in your client if it isn't already:
Register your nick with the server:
/msg nickserv register YourPassword firstname.lastname@example.org
Follow the instructions given to verify the registration.
/msg NickServ VERIFY REGISTERYourNickName VerificationCode
Then log in with:
/msg nickserv register YourNickName YourPassword
11 July 2011
find where a binary is located in linux with type and whereis http://bit.ly/mPX8JJ via linuxscrew.com @artiomix
There are two commands that may help you to find where executable binary is located regardless it’s Unix or Linux system. They are
whereislocates source/binary and manuals sections for specified files and
typetells what exactly shell executes when you type a certain command.
10 July 2011
in any directory, the subdirectories give a zero byte value. This is a little bit offputting, as for example in the root directory /. all the directories show up a zero usage. A command exists for us to find out how much space these directories actually use, but it has nothing to do with ls.
From the command line, try typing:
, that will give you the usage on that particular directory. Du stands for Disk Usage, and -c is not the only switch that the program can accept. Try typing:
, and come up with the various options that are available. An interesting one to try is:
, which gives the space, and lists the space in human interpretable sizes, such as K, and Megs, rather than bytes.
You wanted to give a command as root but you forgot to use sudo ? Don’t worry with this command you’ll use the history combined with sudo, the argument !! has the same meaning that !-1 , so this command runs your last command as root.
Obviously this could be used also as
if you give another command after the one you want to run as root, but take care on which command are you running as root.
OWNER | GROUP | All Others
Each of those sections includes:
READ | WRITE | EXECUTE
Each permission (read, write, execute) is represented with the binary representation of the initial letter:
r – 4
w – 2
x – 1
To get the numeric permission you add which permissions you want to use together. So if you want r+w you get 6. If you want r+w+x you get 7. If you want r+x you get 5. If you want only r you get 4. So now, remembering you have to cover permissions for three different users (Owner, Group, All Others), you will need to have a numeric number for each. So if you want Owner and Group to have rwx permission and All Others to only have r permissions, you would have:
Now, to change the permission of a particular file to 774 you would issue the command:
chmod 774 FILENAME
Where FILENAME is the name of the file.
Shutdown the machine immediately
# shutdown -h now
Broadcast message from sathiya@sathiya-laptop
(/dev/pts/1) at 11:28 ...
The system is going down for halt NOW!
why you should use gksudo or kdesudo instead of sudo to run graphical applications http://goo.gl/rJsUZ
These errors occur because sometimes when sudo launches an application, it launches with root privileges but uses the user's configuration file. For example, if you launch Firefox with the command
it uses root's Firefox configuration file. But if you launch Firefox with the command
it runs with root privileges but uses the user's configuration file (in this case, you can see the homepage and theme are different).Change a few settings while launched as root, and you'll see if you dig into your Firefox profile that certain files are now owned by root.
Suppose I want to erase all the data on my hard disk, then I boot using a LiveCD like Knoppix and open a shell and type the following command:
shred -vfz -n 10 /dev/hda
Here /dev/hda is my whole hard disk. And I am asking shred to make (-n) 10 passes by overwriting the entire hard disk with (-z) zeros. And shred program (-f) forces the write by changing the permissions wherever necessary.
10 passes is probably way overkill, I'm not aware of a single confirmed example of someone recovering data from an erased disk even after 1 pass. Its a time-paranoia trade off.
Download free audio and video content ('podcasts') from the Internet and watch it on your computer or on the go.
Available in most Linux distributions, FreeBSD, for Windows, on the N800 (running OS2008), N810 and the N900 (running Maemo 5). Also available soon for the Nokia N9 (running MeeGo 1.2 Harmattan), the N950 and other MeeGo devices."