I/O Redirection in Linux

Three types of I/O redirections in Linux

1. stdin         <
2. stdout       >
3. stderr       2>

Examples: 

1. # date > file1.txt
    Redirects the output of date command to the file file1.txt .

2. #cal >> file1.txt
    Redirects the output of cal command to file1.txt. Note that the out put of cal command will append to file    file1.txt.   > simply replaces the content where >> will append the content.

3. #tr [a-z] [A-Z] file1.txt  < file1.txt 
    Translates the all lowercase letter to uppercase letter in file1.txt. Here we are giving the file1.txt as input to the command using < .

4. $find / -name linux 2> out_error.txt
    Here a normal user is trying to find the file/folder with name "linux" under root file system ( / ).A normal user doesn't have permissions to every location under root file system ( / ). So the above command will give the output as well as some errors. 
    We can redirect the error messages to a file out_error.txt so that it can display only the found results.
We can use > out_results.txt to capture only the found resuts in out.txt file and leave the errors to display on stdout.

5. $find /-name linux > out_all.txt 2>&1
     The constructor "2>1" will redirect the stderr messages as stdout (but not file). The constructor "2>&1" also do the same but & indicates the output will be stored in a file. So both found results and error messages will store in the file out_all.txt

Support and Guidence of Ubuntu

Yeah friends this is Raja again .

This time i am not with a command and its working .I am with some good sites i frequently visit in the Ubuntu .
  1. omgubuntu.co.uk 
  2. webupd8.org
  3. ubuntuforums.org
  4. askubuntu.com
those are the sites i will visit more often to get new updates(1,2) and Support (3,4) .

I hope they gonna help you too .

cheers!

Raja.

Ubuntu Unity

Ubuntu Unity , A default Desktop Environment in Ubuntu 11.04.
Already this "unity" in the repos . Its going to work in 10.10 and 10.04 . But efficient performance we can get from it in the 11.04. In the 10.10 & 10.04 we can get unity not in desktop version , its only possible through the Ubuntu Netbook version. At the time of Login you can choose what type of Gnome Environment you want .

How to format USB pendrive with NTFS file system in Windows XP ?

Platform   : Windows
Category : File Systems
 
Q. Why?
A. By default Windows XP allows you to format pen drive with FAT32 file system only but not NTFS. If you have a pen drive of capacity more than 4 GB (for instance 8GB) and want to store a file of size more than 4GB like high quality full length movie file, DVD image, compressed file etc.. you cannot store it on your pen drive formatted with FAT32 file system. It is possible if you format pen drive with NTFS file system.

This facility is available in Windows Vista and Windows 7.

For Windows XP users here is the solution.

Q. How ?
  • Connect pen drive.
  • Right click on My Computer, click on Manage.
  • Go to Device Manager - Disk Drive
  • Right click on respective disk drive (pen drive), and go to Properties - Policies.
  • Select Optimize for Performance (2nd option) and click OK.
That's IT.