COMPUTER TIPS

Home | Previous Page| About Us | Set As Home Page

 

Google

  Google Groups Beta Subscribe to Computer free Tips                                                  

Email:

July, 04 , 09                  Today's Tip                              Add to Favorites  

                                                                              

   

Previous Tips e

20-06-09
01-04-09
31-03-09
29-03-09
09-01-09
05-01-09
25-12-08
20-12-08
18-12-08
16-12-08
12-12-08
10-12-08
05-12-08
03-12-08
01-12-08
30-11-08
26-11-08
25-11-08
24-11-08
23-11-08
21-11-08
20-11-08
18-11-08
16-11-08
13-11-08
12-11-08
11-11-08
10-11-08
09-11-08
08-11-08
07-11-08
06-11-08
05-11-08
04-11-08
03-11-08
02-11-08
30-10-08
28-10-08
27-10-08
26-10-08
25-10-08
24-10-08
23-10-08
22-10-08
21-10-08
20-10-08
19-10-08
22-09-08
21-09-08
20-09-08
19-09-08
18-09-08
17-09-08
16-09-08
15-09-08
13-09-08
12-09-08
11-09-08
10-09-08
09-09-08
08-09-08
07-09-08
06-09-08
04-09-08
03-09-08
02-09-08
01-09-08
30-08-08
29-08-08
27-08-08
26-08-08
25-08-08
24-08-08
23-08-08
22-08-08
21-08-08
20-08-08
19-08-08
18-08-08
17-08-08
16-08-08
15-08-08
14-08-08
13-08-08
12-08-08
11-08-08
09-08-08
08-08-08
07-08-08
06-08-08
05-08-08
04-08-08
03-08-08
02-08-08
01-08-08
29-07-08
28-07-08
27-07-08
26-07-08
25-07-08
24-07-08
23-07-08
22-07-08
20-07-08
18-07-08
17-07-08
16-07-08
15-07-08
14-07-08
13-07-08
12-07-08
11-07-08
10-07-08
09-07-08
08-07-08
07-07-08
06-07-08
05-07-08
04-07-08
03-07-08
02-07-08
01-07-08
30-06-08
29-06-08
28-06-08
27-06-08
26-06-08
25-06-08
24-06-08
23-06-08
22-06-08
21-06-08
20-06-08
19-06-08
18-06-08
17-06-08
16-06-08
15-06-08
14-06-08
13-06-08
12-06-08
11-06-08
10-06-08
09-06-08
08-06-08
07-06-08
06-06-08
05-06-08
04-06-08
03-06-08
02-06-08
01-06-08
30-05-08
29-05-08
28-05-08
27-05-08
26-05-08
25-05-08
24-05-08
23-05-08
22-05-08
21-05-08
20-05-08
19-05-08
18-05-08
17-05-08
16-05-08
15-05-08
14-05-08
13-05-08
12-05-08
11-05-08
10-05-08
09-05-08
08-05-08
07-05-08
06-05-08
05-05-08
04-05-08
03-05-08
02-05-08
01-05-08
30-04-08
29-04-08
28-04-08
27-04-08
26-04-08
25-04-08
24-04-08
23-04-08
22-04-08
21-04-08
20-04-08
19-04-08
18-04-08
17-04-08
16-04-08
15-04-08
14-04-08
13-04-08
12-04-08
11-04-08
10-04-08
09-04-08
08-04-08
07-04-08
06-04-08
05-04-08
04-04-08
03-04-08
02-04-08
01-04-08

Mar-08-Tips

Feb-08-Tips

 Jan-08-Tips

Dec-07-Tips

Nov-07-Tips

October 07-Tips

September 07-Tips

August 07-Tips

July 07- Tips

June 07- Tips

May 07- Tips

April 07- Tips

March, 07- Tips

February, 07- Tips

January, 07- Tips

 

 

 

 

 

 

Linux Basic Commands

 

For changing directory / to /etc

[root@pc1 /]# cd /etc

 

One step back /etc to /

[root@pc1 etc]# cd ..

 

Go to previous working directory

[root@pc1 /]# cd -

 

Go to current login user home directory

[root@pc1 etc]# cd ~

 

Show the contents of /etc in single color

[root@pc1 ~]#  dir  /etc

 

Show the contents of /etc in different colors with nature of contents

[root@pc1 ~]#  Ls  /etc

 

create a folder on root partition

[root@pc1  ~]#  mkdir  /disk

 

Create a folder in /disk

[root@pc1  ~]#  mkdir  /disk/dir

 

Create multiple folder in multiple directories with single command

[root@pc1  ~]#  mkdir  /etc/dir1 /var/dir2 /usr/dir3

 

Create multiple folder in same directory

[root@pc1  ~]#  mkdir  dir1 dir2 dir3

 

Copy a file in directory

[root@pc1  disk]#  cp  file dir

 

Copy a file from /disk/file and paste it in /disk/dir/

[root@pc1  disk]#  cp  /disk/file /disk/dir

 

Copy a directory with -r option

[root@pc1  disk]#  cp  -r  dir  dir2

 

Copy a file from /disk/file and paste it in /etc with myfile name

[root@pc1  disk]#  cp  /disk/file  /etc/myfile

 

Remove a file

[root@pc1  disk]#  rm file

 

Remove a file with forcefully option

[root@pc1  disk]#  rm -f  file

 

Remove a directory with out -r option and you face will an error

[root@pc1  disk]#  rm dir

 

Remove a directory with -r option

[root@pc1  disk]#  rm  -r  /disk

 

Remove a directory with forcefully option

[root@pc1  disk]#  rm  -rf  dir

 

Move /etc/dir1 to /disk/ with different name

[root@pc1  disk]#  mv  /etc/dir1  /disk/mydir

Rename the folder name mydir to dir

[root@pc1  disk]#  mv  /disk/mydir  /disk/dir

 

Rename the file name with myfile

[root@pc1  disk]#  mv file myfile

 

Read a file page by page with less command

[root@pc1  disk]# less  /etc/grub.conf

 

Read a file page by page with more command

[root@pc1  disk]# more  /etc/qrub.conf

 

Read first ten lines of grub.conf

[root@pc1  disk]# head  /etc/grub.conf

 

Read last ten lings of grub.conf

[root@pc1  disk]# tail  /etc/grub.conf

 

Read first 12 lines with -n option

[root@pc1  disk]# head  -n  12  /etc/grub.conf

 

Read last 11 lines with -n option

[root@pc1  disk]# tail  -n 11  /etc/grub.conf

 

Copy the contents of /etc/grub.conf in /disk/file

[root@pc1  disk]# cat  /etc/grub.conf > /disk/file

 

Append the contents /etc/mtab in /etc/file

[root@pc1  disk]# cat  /etc/mtab >>  /disk/file

 

Merging tow commands with pipe sign output of the first command is input of second command

[root@pc1  disk]# cat  /etc/squid/squid.conf I more

Count the total lines of squid.conf

[root@pc1  disk]# cat  /etc/squid/squid.conf I wc  -L

 

Show only spool words in squid.conf

[root@pc1  disk]# cat  /etc/squid/squid.conf  I grep  spool

 

Flush the contents of file

[root@pc1  disk]# cat  /dev/null  >  /var/log/messages

    

             

Yesterday Tip.

Useful Adobe Photoshop Shortcut Keys