linux basics

Download Linux basics

If you can't read please download the document

Upload: deepa

Post on 25-May-2015

1.188 views

Category:

Documents


1 download

TRANSCRIPT

  • 1. WHAT IS LINUX? Linux was developed by Linux Torvalds at the University of Helsinki in Finland. He started his work in 1991. The effort expanded with volunteers contributing code and documentation over the internet. It is currently developed under the GNU public license and is freely available in source and binary form.

2.

  • Some of its features include :

1. Virtual memory, allowing the system to use diskroom the same as RAM memory. 2. Networking with TCP/IP and other protocols. 3. Multiple user capability. 4. Protected mode so programs or user's can'taccess unauthorized areas. 5. Shared libraries 6. True multitasking 7. X - A graphical user interface similar to windows,but supports remote sessions over a network. 3. Advanced server functionality * FTP server * Telnet server * BOOTP server * DHCP server * Samba server * DNS server * SNMP services * Mail services * Network file sharing 4. Reasons to use: 1. Free 2. Runs on various machine architectures 3. Works well on machines that are not"modern". Recommended 8MB RAM, with 16MBswap drive space. It will run in hard drives assmall as 500MB or less. 4. Linux is stable and even if a program crashes, itwon't bring the OS down. 5. Source code is available. 5. BASIC LINUX COMMANDS: 1.Show who is logged on and what they are doing. $ w 2.Show who is logged on. $ who 3.Create empty file of 0 byte $ touch 6. 4. Remove file $ rm 5. List files. $ ls 6. Create/Make a new directory. $ mkdir 7. Clear the terminal screen. $clear 7. 8.Display information on free and used memory. $ free 9.Check current date and time. $ date 10.Compare two files. $ cmp file1 file2 11.To save and exit. Ctrl -d 8. Short listing of directory contents $ls - -alist hidden files -dlist the name of the current directory -Fshow directories with a trailing '/' executable files with a trailing '*' -gshow group ownership of file in long listing -iprint the inode number of each file -llong listing giving details about filesand directories -Rlist all subdirectories encountered -tsort by time modified instead of name 9. 12.Prints a calendar for the specified month of thespecified year . $cal month year13.It will show you the full path to the directory you are currently in. $pwd ( print working directory) 14.Type mv followed by the current name of a directory and the new name of the directory. $mv( change the name of a directory) 10. LINUX DIRECTORY STRUCTURE 11. LINUX DIRECTORIES: < / >

  • The root directory.

12. The starting point of your directory structure. 13. This is where the Linux system begins. 14. Every other file and directory on your system is under the root directory. 15. Usually the root directory contains only subdirectories . 16. < /boot > 17. The place where Linux keeps information that it needs when booting up. 18. < /bin > 19. The /bin directory contains the most important programs that the system needs to operate, such as the shells, ls, grep, and other essential things. 20. < /usr/bin > / usr/bin in turn contains applications for the system's users. < /dev > The devices that are available to a Linux system.In Linux, devices are treated like files and you can read and write devices like they were files. < /etc > The configuration files for the Linux system.Most of these files are text files and can be edited by hand. < /home > This is where users keep their personal files are allowed to write files. 21. < /lib > The shared libraries for programs that are dynamically linked. The shared libraries are similar to DLL's on Winblows. < /mnt > This directory is used for mount points. The different physical storage devices (like the hard disk drives, floppies, CD-ROM's) must be attached to some directory in the file system tree before they can be accessed. This attaching is called mounting, and the directory where the device is attached is called the mount poin t. < /sbin, /usr/sbin > Most system administration programs are stored in these directories. In many cases you must run these programs as the root user. 22. < /var > This directory contains variable data that changes constantly when the system is running. Some interesting subdirectories: /log > A directory that contains system log files. They're updated when the system runs, and checking them out can give you valuable info about the health of your system. If something in your system suddenly goes wrong, the log files may contain some info about the situation. /mail> Incoming and outgoing mail is stored in this directory. /spool> This directory holds files that are queued for some process, like printing. < /tmp > Programs can write their temporary files here. 23. < /usr > This directory contains user applications and a variety of other things for them, like their source codes, and pictures, docs, or config files they use. /usr is the largest directory on a Linux system./share> Config files and graphics for many user apps. < /usr/local > This is where you install apps and other files for use on the local machine.