"The only way of finding the limits of the possible is by going beyond them into the impossible." -
Arthur C. Clarke

Linux shell restricting access

November 14th, 2007

Block shell access for user vivek (vivek user account must exits):

Example: # usermod -s /usr/sbin/nologin vivek

Resource: http://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.html

See which files has a process open

November 13th, 2007

Command: lsof -p processID
Example: lsof -p 4048

More info, source: http://forum.ensim.com/showthread.php?t=18798

How to calculate directory size on linux

September 26th, 2007

du -sxch home/* for subfolders of home

more:
http://community.livejournal.com/linux/1685214.html

How to add user (useradd, adduser) Linux

August 29th, 2007

/usr/sbin/useradd -g groupname username

more info here

How to Transfer (Import / Export) Settings including Email Account Settings

May 6th, 2007

In Office 2003 you can run the Save My Settings Wizard to save your profiles or restore previously saved profiles.

The Save My Settings Wizard is typically installed with Office.

Click Start > All Programs > Microsoft Office > Microsoft Office Tools
(If the Save My Settings Wizard does not appear on the Microsoft Office Tools menu, the wizard is not installed.)

Save Settings

The Save the settings from this machine option instructs the wizard to capture your Office configuration settings from the Office programs that you have installed.

To save your settings, follow these steps:
1. Quit all Office programs.
2. Click Start, point to All Programs, point to Microsoft Office, and then point to Microsoft Office Tools.
3. Click Microsoft Office 2003 Save My Settings Wizard.
4. In the Save My Settings Wizard, click Next.
5. Click Save the settings from this machine, and then click Next.
6. Type the location where you want to save the file, and then click Finish.

Restore Your Previously Saved Settings
The Restore Your Previously Saved Settings option instructs the wizard to restore your Office configuration settings from the .ops file that you specify.

To restore your settings, follow these steps:
1. Quit all Office programs.
2. Click Start, point to All Programs, point to Microsoft Office Tools, and then click Save My Settings Wizard.
3. In the Save My Settings Wizard, click Next.
4. Click Restore previously saved settings to this machine, and then click Next.
5. In the File to Restore Settings From box, type the path of the location of your .ops file, and then click Finish.

NOTE: When you transfer email accounts, your passwords are not transfered, so you will need to add the passwords one-by-one.

How to transfer Outlook 2003 rules

May 6th, 2007

You will need to export the rules from source machine and import to destination machine.

EXPORT
Go to

    Tools > Rules and Alerts
    Click Options > Export Rules

IMPORT
Go to

    Tools > Rules and Alerts
    Click Options >Import Rules

Downlad a file via http in Linux

March 4th, 2007

wget
Example: wget http://wilmer.gaast.net/downloads/axel-1.0b.tar.gz

recursive chown command in Linux

March 4th, 2007

cd /usr/tom
chown -R tom:group *

How to unzip a file in Linux

March 4th, 2007

All of the commands below assume that you are within the same directory that the compressed file is in.
Type ls {enter} to be sure

How to unzip a .tar.gz/.tgz file?

To extract .tar.gz or .tgz files, run the following command in a terminal:
tar -zxvf file.tar.gz (or file.tgz)
This will normally create a new directory based on the filename. If you want to extract a filename called file.tar (without the .gz) simply run:
tar -xvf file.tar
For more information, in a terminal, type man tar

http://www.linuxhelp.net/newbies/#unzip