Enforce any application to appear full screen in gnome

In Gnome, you can force any application to go full screen;
Open System=>Preferences=>Keyboard shortcuts
Under “Window Management” assigne any key combinations such as “CTL+SHIFT+F” for “Toggle Fullscreen mode”.
Open any application (firefox, eclipse, ….) and press “CTRL + SHIFT + F”, the program will goes in full screen mode.

Tagged | Leave a comment

pass entire parameters in shell scripts

example bash file:

save the following in a file called print.sh
#!/bin/bash
echo “$@”
and then :
chmod +x print.sh
./print.sh hello world
Note that, all the parameters you pass to print.sh will be passed to echo, this because of “$@”

Tagged | 2 Comments

List sessions for a user using Siebel CLI

“list sessions for login user_name

Tagged | Leave a comment

LAN Chat Server & Client in Ubuntu

“sudo apt-get install chatplus chatplus-server”

Tagged , , , | Leave a comment

Extract a certain file to a certain directory from a tar archive using GNU Tar

“gtar -C hobba -xvf aamr.tar aamr/1”

where:

“hobba” is the directory to extract to
“aamr.tar” is the archive from which we’ll extract the file
“aamr/1” is the file inside the archive to be extracted to the destination directory (hobba).

Tagged , , , | Leave a comment