Tuesday, December 29, 2009

LINUX BASIC COMMANDS



Navigation Commands - [ pwd, cd ]


pwd
 This command is used to find the current location or current working directory.

 Eg:
 [user@ws26 ~]$ pwd
 /home/user

 cd
 This command id used to change the directory. You can move from one directory to another using this command. Few examples are given below.

 Concider you have a directory structure /home/user/test/test1/ . test and test1 are directories in user home.

 Example 1:
 Consider you have a directory "test" in /home/user. Your current working directory is /home/user. You want to change your current working directory from /home/user to /home/user/test, use the following command
 [user@ws26 ~]$ pwd
 /home/user
 [user@ws26 ~]$ cd test
 [user@ws26 ~]$ pwd
 /home/user/test

 Example 2:
 If you want to move back to /home/user, use the following command
 [user@ws26 ~]$ cd ..
 [user@ws26 ~]$ pwd
 /home/user

 Example 3:
 To get back to the home directory of the user
 [user@ws26 ~]$ cd ~
 [user@ws26 ~]$ pwd
 /home/user.




Listing contents in a directory - [ ls, ls -l, ll ]


ls
 This command is used to list all the files and directory in the current directory.

 Eg:
 [user@ws26 ~]$ ls
 1152696870.jpg book OperaDownloads snapshot52.png
 image300.jpg Desktop test spiderman2.jpg

 ls -l or ll
 This command is also used to list all the files and directories. Here you will get more details about the files and directories present in the current directory. You will see the permission set, creation date, file / directory size etc.

 Eg:
 [user@ws26 ~]$ ls -l
 total 5
 -rw-rw-r-- 1 user user 33188 Dec 22 02:56 1152696870.jpg
 -rw-rw-r-- 1 user user 17647 Aug 19 2006 534458.gif
 -rw-rw-r-- 1 user user 26817 Aug 19 2006 534477.gif
 drwxrwxr-x 2 user user 4096 Jan 13 04:20 book
 drwx------ 3 user user 4096 Feb 4 02:34 Desktop




Reading files in Linux - [ cat, more, less ]


Cat
 This command is used to display the contents of a file. You can read the file contents using the cat command.

 Example:
 [user@ws26 ~]$ cat testfile
 this is a test file.. You can read me..


 Less and More
 Both the less and more commands serve similar function. They are used to display file one screen at a time. You can press spacebar to continue reading the file. These commands are mainly used while reading large files.

 Example 1:
 [user@ws26 ~]$ less testfile
 this is a test file.. You can read me..

 Example 2:
 [user@ws26 ~]$ more testfile
 this is a test file.. You can read me..


manipulating files - [ cp, mv, rm, mkdir ]


cp
 This command is used to copy files/directory.

 Example:
 [user@ws26 ~]$ cp file1 directory1
 This will copy the file1 into the directory1

 cp -R
 This command is used to copy directories recursively (copy all the files and folders inside the directory).

 Example:
 [user@ws26 ~]$ cp directory2 directory1
 This will copy the whole directory2 into directory1

 mv
 This command is used to move the file or directory.

 Example:
 [user@ws26 ~]$ mv directory2 directory1
 This will move the whole directory2 into directory1

 rm
 This command is used to remove or delete files and directories.

 Example:
 [user@ws26 ~]$ rm directory2
 This will delete the directory - directory2

 mkdir
 This command is used to create a new directory

 Example:
 [user@ws26 ~]$ mkdir directory3
 This will create a new directory - directory3.

What is virus..?


Virus is a program . It can copy itself and store it in boot sector or document. It can slow the process and degrade the performance of the system.

  
::::Virus Expansion::::

VITAL INFORMATION RESOURCE UNDER SEIGE

What is swap file





A swap file is a space on a  extension of a computer's real memory hard disk used as the virtual memory. Having a swap file allows your computer's operating system to pretend that you have more RAM than you actually do. The least recently used files in RAM can be "swapped out" to your hard disk until they are needed later so that new files can be "swapped in" to RAM.

Monday, December 28, 2009

Different Between WINDOWs and LINUX




Both are operating system only.


1)  MS window based on DOS  but Linux is based on UNIX

2)  Linux is more security Because its open source development that was checked by all around the people,but in case of window its made by a team.

3) Linux is free of cost,but window is costly one.

4) Linux is open source operating system and people can change the program and adding the code.But we cant change the code in window OS

5) Linux is customizable but window is not.

6) Linux has a reputation for fewer bugs than Windows.

7) Window is boot from its primary partition but Linux can boot from either a primary partition or a logical partition inside an extended partition.

8) Window must boot in first hard disk but Linux boot in any hard disk

9) Windows uses a hidden file for its swap file typically they are stored in the same partition but Linux uses a dedicated partition for its swap file.

10) Windows separates directories with a back slash while Linux uses a normal forward slash.

11) Windows file name are not case sensitive but Linux file names are case sensitive.

12) In window we can store the files in any where but  in linux we can store under a parent directory.

13)  Window use volume hierarchy but in Linux uses unified hierarchy

language need for Engineering student




This will help to get the knowledge and placement as well as girl friends


  
 If you learn this Microsoft knock your window.....                               







You are a Master in this then You are a hero of your class
  
If you know the concept at least  then you can show u r heroism among friends
  <<  ALL  THE  ABOVE  MAKE  YOU SHINE AND MILLIONAIRs>>


How To get high internal mark.......!




Don't  feel about internal marks when you are a brilliant student. But you are a average student , Don't worry I will help you...!



1)      Talk the staff friendly
2)      Ask frequently doubt  (if have or haven't)

3)      Always keep smile in front of the staff
4)      Act as you are a good student
3)      Be first to tell the answer
4)      show him/her you know the answer
                                                                  

How to easily score in semester??



1)         Presentation is important for getting high score.
2)         Do not scribble your answer sheet                   
3)         If you are writing the answer neatly and you      
                you made mistake in the middle of the 
                paragraph then do not strike that mistaken part
4)        Use Black pen for decorating paper                
5)        Your writing programming paper whatever you
               write starting and finishing lines should be neat
6)         If your writing  theory paper draw a big big    
              attractive diagram related to that topics.
7) Try to fill the 44 paper ((because if u have luck 
             per paper u can got one mark))