Ubuntu tip:
to show hidden files in the folder window graphically, press ctrl+h on the folder window
Monday, September 3, 2012
Wednesday, July 25, 2012
speed up your build process "make"
use "make -j"
where number of jobs are those that can run parellel to make it faster
where number of jobs are those that can run parellel to make it faster
Thursday, July 19, 2012
Thursday, July 12, 2012
shell IF statements
shell script, IF evaluate conditions:
Expression | Description |
-d file | True if file is a directory. |
-e file | True if file exists. |
-f file | True if file exists and is a regular file. |
-L file | True if file is a symbolic link. |
-r file | True if file is a file readable by you. |
-w file | True if file is a file writable by you. |
-x file | True if file is a file executable by you. |
file1 -nt file2 | True if file1 is newer than (according to modification time) file2 |
file1 -ot file2 | True if file1 is older than file2 |
-z string | True if string is empty. |
-n string | True if string is not empty. |
string1 = string2 | True if string1 equals string2. |
string1 != string2 | True if string1 does not equal string2. |
Thursday, June 14, 2012
terminator; terminal for developers
terminator is an alternative for your putty on widows or gnome terminal on ubuntu/linux.
short tut on using it..
short tut on using it..
- Ctrl-Shift-E: will split the view vertically.
- Ctrl-Shift-O: will split the view horizontally.
- Ctrl-Shift-P: will focus be active on the previous view.
- Ctrl-Shift-N: will focus be active on the next view.
- Ctrl-Shift-W: will close the view where the focus is on.
- Ctrl-Shift-Q: will exit terminator.
- F11: will make terminator go fullscreen.
Friday, June 1, 2012
linux utility: screen
'screen' is a linux utility that enables you to open multiple sessions without multiple ssh login to same remote server. for example, you have logged into a remote server, and you run a command in forground, and now you want to run another command simultaneously, you will have to open another remote session by logging in again. this can be avoided by using 'screen' that if you run on the remote terminal, it will launch another remote prompt within the same terminal.
install:
apt-get install screen // ubuntu
login to remote server:
ssh xyz@remoteServer
$screen
commands to switch between two prompts:
Ctrl+a c Create new window
Ctrl+a k Kill the current window / session
Ctrl+a w List all windows
Ctrl+a 0-9 Go to a window numbered 0 9, use Ctrl+a w to see number
Ctrl+a Ctrl+a Toggle / switch between the current and previous window
Ctrl+a S Split terminal horizontally into regions and press Ctrl+a c to create new window there
Ctrl+a :resize Resize region
Ctrl+a :fit Fit screen size to new terminal size. You can also hit Ctrl+a F for the the same task
Ctrl+a :remove Remove / delete region. You can also hit Ctrl+a X for the same taks
Ctrl+a tab Move to next region
Ctrl+a D (Shift-d) Power detach and logout
Ctrl+a d Detach but keep shell window open
Ctrl-a Ctrl-\ Quit screen
Ctrl-a ? Display help screen i.e. display a list of commands
install:
apt-get install screen // ubuntu
login to remote server:
ssh xyz@remoteServer
$screen
commands to switch between two prompts:
Ctrl+a c Create new window
Ctrl+a k Kill the current window / session
Ctrl+a w List all windows
Ctrl+a 0-9 Go to a window numbered 0 9, use Ctrl+a w to see number
Ctrl+a Ctrl+a Toggle / switch between the current and previous window
Ctrl+a S Split terminal horizontally into regions and press Ctrl+a c to create new window there
Ctrl+a :resize Resize region
Ctrl+a :fit Fit screen size to new terminal size. You can also hit Ctrl+a F for the the same task
Ctrl+a :remove Remove / delete region. You can also hit Ctrl+a X for the same taks
Ctrl+a tab Move to next region
Ctrl+a D (Shift-d) Power detach and logout
Ctrl+a d Detach but keep shell window open
Ctrl-a Ctrl-\ Quit screen
Ctrl-a ? Display help screen i.e. display a list of commands
Sunday, May 13, 2012
hibernate ubuntu 12.04
by default hibernate option is disabled on ubuntu 12.04. to hibernate, open terminal, and execute pm-hibernate command.
Subscribe to:
Posts (Atom)