Linux is an open-source operating system that can be used as a server or standalone OS. It offers advantages like stability, robustness, security, and high performance. Linux directories include / for the root directory, /bin for essential programs, /home for user files, and /var for variable data. Common Linux commands include ls to list files, cd to change directories, grep to search files, and vi/emacs for text editing. Cron jobs allow scheduling commands to run periodically using a crontab file.
Linux is an open-source alternative to Microsoft Windows that is freely available and reliable. It has a command line interface and features like virtual memory, networking capabilities, multiple users, and graphical user interfaces. Common Linux commands include ls, cd, mkdir, rmdir, cat, cp, and editors like vi, emacs, nano are used to create and edit files. The Linux directory structure is hierarchical with key directories being /, /home, /usr, /var, and editors allow editing files in different modes like insert and command modes.
This document provides an overview of Red Hat Linux and Linux fundamentals. It discusses Linux origins with the GNU project and Linus Torvalds' creation of the Linux kernel. It also describes open source software, different Red Hat distributions like Red Hat Enterprise Linux and Fedora, Linux principles like treating everything as a file, and basic Linux commands. The document is divided into units covering Linux usage basics, running commands and getting help, and browsing the filesystem.
The document provides information about the LAMP stack and its components - Linux, Apache, MySQL, and PHP. It then discusses Linux commands, directories, editors, and scheduling tasks using cron jobs. Key points include:
- LAMP is an open source software solution stack using Linux, Apache, MySQL, and PHP. It allows for easy coding and deployment of PHP applications.
- Linux commands covered include cd, ls, pwd, touch, rm. Directories include /, /boot, /bin, /usr, /var. Editors discussed are vi and emacs.
- Cron jobs allow scheduling commands to run on a set schedule using crontab files. Syntax includes minutes, hours, day of month, month
The document provides information about the LAMP stack and its components - Linux, Apache, MySQL, and PHP. It then discusses Linux commands, directories, editors, and scheduling tasks using cron jobs. Key details include that LAMP is an open source software stack using these components, Linux commands allow managing files and systems, directories structure the Linux filesystem, vi and cron are tools for text editing and automated tasks.
50 most frequently used unix linux commands (with examples)Rodrigo Maia
油
This document provides examples for 50 common Linux commands, including tar, grep, find, ssh, sed, awk, vim, diff, sort, and more. It explains practical uses for each command and provides short code snippets to demonstrate basic functionality. The commands cover a wide range of tasks like archiving, searching, editing, comparing, and managing files, processes and system resources.
The document provides information about an upcoming UNIX and Shell Scripting workshop, including contact information for the workshop instructor R. Chockalingam, and covers topics that will be discussed such as the architecture and components of the UNIX operating system, basic UNIX commands, text editors, the file system structure, flags and arguments, and more.
This document provides an overview of the Linux operating system and commands. It begins with course objectives to introduce Unix concepts, commands, and the VI editor. It then discusses what an operating system is and why they are needed before exploring the evolution, flavors, and architecture of Unix/Linux. Key topics covered include the file system structure, absolute vs relative paths, how Unix sessions work, login sequences, command syntax, and standard input/output/error. The document also examines regular expressions, shell metacharacters, editors like VI, and permissions.
The document provides an overview of common Linux commands organized into categories, with brief explanations of each command. It covers commands for working with files and directories (ls, cd, cp, rm), processes (ps, top, kill), networking (ping, ifconfig), file archiving and compression (tar, gzip), and more. It also lists important directories in the Linux file system such as /bin, /usr/bin, /etc, and directories under /usr.
The document provides information about the LAMP stack and its components - Linux, Apache, MySQL, and PHP. It then discusses Linux commands, directories, editors, and scheduling tasks using cron jobs. Key points are:
- LAMP is an open source software solution stack using Linux, Apache, MySQL, and PHP.
- Linux commands allow users to navigate files/folders, view processes, manage users, and more.
- Linux directories include /, /boot, /bin, /lib, /usr for storing system and user files and apps.
- Cron jobs allow scheduling commands to run periodically using a crontab file.
The document provides an overview of various operating systems including UNIX, Linux, and Windows. It discusses the history and development of UNIX including early projects at Bell Labs and Berkeley. It also summarizes key features of UNIX such as security, reliability, and multi-user support. The document then describes the UNIX directory structure and common commands like ls, cd, cat, and man.
This document provides an overview of the UNIX operating system and some basic UNIX commands. It discusses what UNIX is, its origins at Bell Laboratories in 1969, and some of its core functions like providing a filing system and loading/executing programs. It also covers the UNIX kernel and layers, file system structure, shells, logging in, and examples of common commands like ls, cat, more, pr, grep, passwd, who, and man.
Unix , Linux Commands
Unix, which is not an acronym, was developed by some of the members of the Multics team at the bell labs starting in the late 1960's by many of the same people who helped create the C programming language.
This document provides an overview of basic Linux commands, including man for accessing manual pages, ls for listing directory contents, mkdir for creating directories, cd for changing directories, pwd for printing the working directory, and ~ for accessing the home directory. It also covers commands for copying, moving, removing files, clearing the screen, viewing file contents, searching within files, counting words, piping commands together, using wildcards, and changing file permissions with chmod. The document encourages learning through manual pages and understanding error messages.
- Linux originated as a clone of the UNIX operating system. Key developers included Linus Torvalds and developers from the GNU project.
- Linux is open source, multi-user, and can run on a variety of hardware. It includes components like the Linux kernel, shell, terminal emulator, and desktop environments.
- The document provides information on common Linux commands, files, users/groups, permissions, and startup scripts. It describes the Linux file system and compression/archiving utilities.
The document discusses various topics related to Linux administration. It covers Unix system architecture, the Linux command line, files and directories, running programs, wildcards, text editors, shells, command syntax, filenames, command history, paths, hidden files, home directories, making directories, copying and renaming files, and more. It provides an overview of key Linux concepts and commands for system administration.
After completing this section, students should be able to log into the Linux system, understand and manipulate the UNIX file system, describe the role of the shell, use basic file commands like cd, ls, cp, and rm, use standard input/output and piping, and understand the UNIX philosophy. The document provides an introduction to UNIX operating systems, shells, file systems, basic commands, and input/output redirection.
The document provides instructions on installing Linux and describes common Linux commands. It explains how to install Linux by booting from a CD, selecting language and keyboard settings, partitioning disks, and completing the installation process. It then lists and describes over 50 common Linux commands for viewing files, manipulating directories, searching files, managing processes, and more. Advanced commands are also included for checking system information and hardware.
The e-book covers some of the really cool ways on how to go about using Linux from Terminal making your daily work much more efficient, less time consuming and of course geeky.
This document provides an overview of Linux file management basics. It discusses permissions for files and directories, essential file management tasks like creating/moving/copying files, using text editors like Nano and Vim, performing operations like viewing file timestamps and disk usage. It also covers Linux wildcards for pattern matching, and tools for finding files like locate, find, whereis etc. I/O redirection and pipes/filters are also mentioned.
This program implements the First Come First Serve (FCFS) CPU scheduling algorithm in C. It takes the arrival time and service time of each process as input, calculates the start time, finish time, waiting time and turnaround time of each process, and outputs these values along with the average waiting time and average turnaround time. The processes are scheduled in the order of their arrival, with no preemption, following the FCFS principle.
The document provides tips for improving productivity when using the Unix command line. It discusses advantages of the shell like flexibility and chaining commands together. It then gives examples of using shell commands in scripting languages. The majority of the document provides examples of specific Unix commands like grep, find, less and their usage for tasks like file searching, viewing files and directory listings. It concludes with tips on aliases, environment variables and symbolic links.
This document provides a summary of the Unix and GNU/Linux command line. It begins with an overview of files and file systems in Unix, including that everything is treated as a file. It then discusses command line interpreters (shells), and commands for handling files and directories like ls, cd, cp, and rm. It also covers redirecting standard input/output, pipes, and controlling processes. The document is intended as training material and provides a detailed outline of its contents.
This document provides an overview of Linux terminal sessions and system utilities. It discusses employing fundamental utilities like ls, wc, sort, and grep. It also covers managing input/output redirection, special characters, shell variables, environment variables, and creating shell scripts. Key topics include using utilities to list directories, count file elements, sort lines, and locate specific lines. It also discusses starting additional terminal sessions, exiting sessions, and locating the graphical terminal.
Useful Linux and Unix commands handbookWave Digitech
油
This article provides practical examples for most frequently used commands in Linux / UNIX. Helpful for Engineers and trainee engineers, Software developers. A handy notes for all Linux & Unix commands.
This document provides an index of 21 coding topics that include performing arithmetic operations, comparison of numbers, compound interest calculation, prime number checking, and palindrome checking. It also includes displaying a Fibonacci series, calculating simple interest, and swapping numbers without using three variables. The index provides the topic name and number for each item.
The document provides summaries of common Linux commands, including their most common uses. Some key commands covered are ls, which lists files and directories; cd, which changes the current working directory; and man, which displays manuals for commands. The document also discusses commands for checking network connectivity like ping and ifconfig, managing processes like top and ps, and manipulating files and directories like touch, rm, and chmod.
Linux is a prominent example of free and open source software. It can be installed on a wide variety of devices from embedded systems to supercomputers. Linux is commonly used for servers, with estimates that it powers around 60% of web servers. Linux distributions package the Linux kernel with other software like utilities, libraries and desktop environments. Programming languages and build tools like GCC are supported. Embedded Linux is often used in devices due to its low cost and ease of modification.
The document discusses various aspects of ancient Egyptian civilization. It describes how the Hyksos invaded Egypt around 1720 BC with horses and chariots, defeating Egyptian foot soldiers. It also mentions the three main pyramids built by Egyptian pharaohs: the pyramids of Khufu, Khafre, and Menkaure. Finally, it provides brief descriptions of some major Egyptian gods such as Ra, Horus, and Anubis and the animal heads with which they were often depicted.
Este documento describe c坦mo las tecnolog鱈as de la informaci坦n y la comunicaci坦n (TIC) se han infiltrado en todos los aspectos de la actividad humana y la sociedad, incluida la educaci坦n. Las TIC se caracterizan por la interconexi坦n y la flexibilidad, lo que permite una reconfiguraci坦n continua de las organizaciones e instituciones. Tambi辿n hay una convergencia de lenguajes y sistemas tecnol坦gicos en una red ampliamente integrada.
The document provides information about the LAMP stack and its components - Linux, Apache, MySQL, and PHP. It then discusses Linux commands, directories, editors, and scheduling tasks using cron jobs. Key points are:
- LAMP is an open source software solution stack using Linux, Apache, MySQL, and PHP.
- Linux commands allow users to navigate files/folders, view processes, manage users, and more.
- Linux directories include /, /boot, /bin, /lib, /usr for storing system and user files and apps.
- Cron jobs allow scheduling commands to run periodically using a crontab file.
The document provides an overview of various operating systems including UNIX, Linux, and Windows. It discusses the history and development of UNIX including early projects at Bell Labs and Berkeley. It also summarizes key features of UNIX such as security, reliability, and multi-user support. The document then describes the UNIX directory structure and common commands like ls, cd, cat, and man.
This document provides an overview of the UNIX operating system and some basic UNIX commands. It discusses what UNIX is, its origins at Bell Laboratories in 1969, and some of its core functions like providing a filing system and loading/executing programs. It also covers the UNIX kernel and layers, file system structure, shells, logging in, and examples of common commands like ls, cat, more, pr, grep, passwd, who, and man.
Unix , Linux Commands
Unix, which is not an acronym, was developed by some of the members of the Multics team at the bell labs starting in the late 1960's by many of the same people who helped create the C programming language.
This document provides an overview of basic Linux commands, including man for accessing manual pages, ls for listing directory contents, mkdir for creating directories, cd for changing directories, pwd for printing the working directory, and ~ for accessing the home directory. It also covers commands for copying, moving, removing files, clearing the screen, viewing file contents, searching within files, counting words, piping commands together, using wildcards, and changing file permissions with chmod. The document encourages learning through manual pages and understanding error messages.
- Linux originated as a clone of the UNIX operating system. Key developers included Linus Torvalds and developers from the GNU project.
- Linux is open source, multi-user, and can run on a variety of hardware. It includes components like the Linux kernel, shell, terminal emulator, and desktop environments.
- The document provides information on common Linux commands, files, users/groups, permissions, and startup scripts. It describes the Linux file system and compression/archiving utilities.
The document discusses various topics related to Linux administration. It covers Unix system architecture, the Linux command line, files and directories, running programs, wildcards, text editors, shells, command syntax, filenames, command history, paths, hidden files, home directories, making directories, copying and renaming files, and more. It provides an overview of key Linux concepts and commands for system administration.
After completing this section, students should be able to log into the Linux system, understand and manipulate the UNIX file system, describe the role of the shell, use basic file commands like cd, ls, cp, and rm, use standard input/output and piping, and understand the UNIX philosophy. The document provides an introduction to UNIX operating systems, shells, file systems, basic commands, and input/output redirection.
The document provides instructions on installing Linux and describes common Linux commands. It explains how to install Linux by booting from a CD, selecting language and keyboard settings, partitioning disks, and completing the installation process. It then lists and describes over 50 common Linux commands for viewing files, manipulating directories, searching files, managing processes, and more. Advanced commands are also included for checking system information and hardware.
The e-book covers some of the really cool ways on how to go about using Linux from Terminal making your daily work much more efficient, less time consuming and of course geeky.
This document provides an overview of Linux file management basics. It discusses permissions for files and directories, essential file management tasks like creating/moving/copying files, using text editors like Nano and Vim, performing operations like viewing file timestamps and disk usage. It also covers Linux wildcards for pattern matching, and tools for finding files like locate, find, whereis etc. I/O redirection and pipes/filters are also mentioned.
This program implements the First Come First Serve (FCFS) CPU scheduling algorithm in C. It takes the arrival time and service time of each process as input, calculates the start time, finish time, waiting time and turnaround time of each process, and outputs these values along with the average waiting time and average turnaround time. The processes are scheduled in the order of their arrival, with no preemption, following the FCFS principle.
The document provides tips for improving productivity when using the Unix command line. It discusses advantages of the shell like flexibility and chaining commands together. It then gives examples of using shell commands in scripting languages. The majority of the document provides examples of specific Unix commands like grep, find, less and their usage for tasks like file searching, viewing files and directory listings. It concludes with tips on aliases, environment variables and symbolic links.
This document provides a summary of the Unix and GNU/Linux command line. It begins with an overview of files and file systems in Unix, including that everything is treated as a file. It then discusses command line interpreters (shells), and commands for handling files and directories like ls, cd, cp, and rm. It also covers redirecting standard input/output, pipes, and controlling processes. The document is intended as training material and provides a detailed outline of its contents.
This document provides an overview of Linux terminal sessions and system utilities. It discusses employing fundamental utilities like ls, wc, sort, and grep. It also covers managing input/output redirection, special characters, shell variables, environment variables, and creating shell scripts. Key topics include using utilities to list directories, count file elements, sort lines, and locate specific lines. It also discusses starting additional terminal sessions, exiting sessions, and locating the graphical terminal.
Useful Linux and Unix commands handbookWave Digitech
油
This article provides practical examples for most frequently used commands in Linux / UNIX. Helpful for Engineers and trainee engineers, Software developers. A handy notes for all Linux & Unix commands.
This document provides an index of 21 coding topics that include performing arithmetic operations, comparison of numbers, compound interest calculation, prime number checking, and palindrome checking. It also includes displaying a Fibonacci series, calculating simple interest, and swapping numbers without using three variables. The index provides the topic name and number for each item.
The document provides summaries of common Linux commands, including their most common uses. Some key commands covered are ls, which lists files and directories; cd, which changes the current working directory; and man, which displays manuals for commands. The document also discusses commands for checking network connectivity like ping and ifconfig, managing processes like top and ps, and manipulating files and directories like touch, rm, and chmod.
Linux is a prominent example of free and open source software. It can be installed on a wide variety of devices from embedded systems to supercomputers. Linux is commonly used for servers, with estimates that it powers around 60% of web servers. Linux distributions package the Linux kernel with other software like utilities, libraries and desktop environments. Programming languages and build tools like GCC are supported. Embedded Linux is often used in devices due to its low cost and ease of modification.
The document discusses various aspects of ancient Egyptian civilization. It describes how the Hyksos invaded Egypt around 1720 BC with horses and chariots, defeating Egyptian foot soldiers. It also mentions the three main pyramids built by Egyptian pharaohs: the pyramids of Khufu, Khafre, and Menkaure. Finally, it provides brief descriptions of some major Egyptian gods such as Ra, Horus, and Anubis and the animal heads with which they were often depicted.
Este documento describe c坦mo las tecnolog鱈as de la informaci坦n y la comunicaci坦n (TIC) se han infiltrado en todos los aspectos de la actividad humana y la sociedad, incluida la educaci坦n. Las TIC se caracterizan por la interconexi坦n y la flexibilidad, lo que permite una reconfiguraci坦n continua de las organizaciones e instituciones. Tambi辿n hay una convergencia de lenguajes y sistemas tecnol坦gicos en una red ampliamente integrada.
PHP is a server-side scripting language used for web development. It allows developers to embed PHP code into HTML pages which is then interpreted and executed by a PHP processor on the server to generate dynamic web pages. PHP code is contained within special tags and can be used to store and retrieve data from databases, create forms, send emails, and more. Some key PHP features include variables, functions, object-oriented capabilities, and file uploads. The php.ini configuration file controls aspects of PHP's behavior.
Red and black were symbolic colors used in Communist China to represent conformity and opposition to the Communist Party. Red symbolized good and conformity to the party, while black symbolized opposition to the party and was considered very bad. The colors represented an individual's class status and differentiated between those who were good and supported the ideals of communism versus those who were bad and went against the party.
Apache is an open-source web server that is the most popular on the internet. It is secure, fast, and reliable. Apache supports many features including CGI, SSL, virtual domains, and plug-in modules for extensibility. It uses text-based configuration files and runs as a standalone process, started by running scripts to start, stop, and restart the server.
This document provides an introduction and overview of Linux shell scripting. It discusses key topics like kernels, shells, processes, redirection, pipes, filters, variables, writing shell scripts, command line arguments, and more advanced shell scripting commands. The goal is to explain the basics of shell programming through examples of shell scripts. While it does not serve as a manual, it aims to provide more examples than typical manuals to clarify concepts for beginners.
This document provides an introduction to the UNIX/Linux operating system. It discusses general remarks about UNIX/Linux, including classification and essential features. It covers first steps at the computer such as user logon/logoff. It also discusses file systems, including file types, paths, and commands like pwd, ls, and cd.
This document provides an introduction and overview of the UNIX operating system. It discusses that UNIX is an operating system, like Windows, that manages communication between software and hardware. Popular versions of UNIX include Linux and Android. The document outlines reasons for using UNIX such as reliability, low/no cost, and open source access. It describes the core components of UNIX including the kernel, bootloader, daemons, and shells. Key features like being portable, multi-user, and providing security are highlighted. Common UNIX commands and utilities are listed along with file permissions, redirection, pipes, and filters.
This document provides a cheat sheet of common Linux commands and their usage. It covers basic file operations like copying, moving, deleting files and directories. It also includes commands for viewing files, compressing/decompressing files, finding files, remote access, and getting system information. The commands are explained over 3 pages with examples of proper syntax and usage for each one.
Linux is a free, open-source operating system that provides functionality similar to Unix systems. The document then lists and describes several common Linux commands used to navigate directories, view files and system information, manage processes, and edit text files. It also includes a diagram of the standard Linux directory structure and brief descriptions of the purpose of each top-level directory.
This document provides an introduction to Linux, including:
- What Linux is and where it came from, as an open source operating system created by Linus Torvalds in 1991.
- How to get Linux through downloading a distribution like Red Hat and the packages it includes.
- Why Linux has become significant due to its growing popularity, ability to run on multiple hardware platforms, and being free.
- An overview of Linux commands and utilities for file management, processes, users and permissions.
The document acknowledges and thanks several people for their contributions to an internship program. It thanks the course coordinator for their support, the librarian and lab assistant for their hard work, and other staff members for their assistance. It also thanks faculty, the program coordinator, and friends who worked as interns for their help and ideas throughout the project.
The document acknowledges and thanks several people for their contributions to an internship program. It thanks the course coordinator for their support, the librarian and lab assistant for their hard work, and other staff members for their assistance. It also thanks faculty, the program coordinator, and friends who helped as interns for their ideas and contributions throughout the project.
Linux is an open-source operating system designed as a free alternative to Unix, with a reputation for efficiency and performance; it was developed by Linus Torvalds in 1991 and is now developed collaboratively under the GNU license. The document also provides descriptions of common Linux commands like pwd, cd, ls, and examples of how to use them.
The document discusses the UNIX operating system. It describes UNIX as a stable, multi-user, multi-tasking system used for servers, desktops and laptops. It also discusses the different components that make up the UNIX system, including the kernel, shell, and programs. It explains the directory structure and file hierarchy with the root directory at the top. It provides examples of different types of files and concludes by describing some basic date and time commands in UNIX.
Linux is a fully-networked, multi-user, multitasking operating system similar to Unix. It was created in 1991 by Linus Torvalds and is now used widely due to its low cost, stability, and ability to run on different hardware platforms. Linux uses a command line interface where users log in and issue commands to perform tasks like copying files, installing software, and checking system resources. Common commands include ls to list files, cd to change directories, and man to view manuals.
Linux provides a login prompt to enter a username and password. Upon successful login, the shell prompt is displayed and the user can begin entering commands. Common commands include ls to view files, man to access documentation, and vim to edit text files. Help is available through built-in documentation accessed with commands like man, info, and --help flags.
The document provides information about Linux including its history, components, and usage. It can be summarized as follows:
Linux originated in 1991 when Linus Torvalds created the Linux kernel. Since then, thousands of programmers have enhanced Linux, which is now used on millions of computers worldwide. Linux is a fully-networked, multi-user, multi-tasking operating system that provides both command line and graphical interfaces. It includes core utilities like editors, compilers, and networking tools. Common distributions include Red Hat Enterprise Linux and Fedora, which provide commercial support and the latest open source technologies, respectively.
An operating system acts as an interface between hardware and software, managing resources and presenting an easier programming interface than the underlying hardware. The UNIX system is organized into three levels - the kernel which manages tasks and storage, the shell which connects programs and executes commands, and tools/applications which provide additional functionality. PuTTY is a free and open-source terminal emulator and SSH client most commonly used to access UNIX/Linux systems remotely from Windows. The course objectives are to learn UNIX commands, shell programming, process management, memory management, file organization, and implementing related algorithms.
Linux is a fully-featured open source operating system based on Unix. It was created by Linus Torvalds in 1991 and has since grown in popularity. Linux uses a kernel to manage hardware resources and runs on multiple hardware platforms. Users interact with Linux through a shell and can execute commands, manage files and directories, and perform other tasks. Common Linux commands include ls, cd, pwd, cp, and more.
This document provides information about experiments to be conducted in the Unix Lab course for the Department of Information Technology at Theem College of Engineering. It lists 6 experiments covering basic and advanced Unix commands, basic administrative system tasks, shell scripting, sed, grep, awk, and perl scripts. The objectives are to learn skills like user management, file permissions, process management, writing shell scripts, and using utilities like sed, grep, awk and perl. The document provides details of the individual experiments and tasks to be completed under each experiment. It specifies the faculty in charge of the course.
2. What is Linux? An alternative to Microsoft Windows Open source Freely available Reliable More use seen in labs/scientific situations, but is seeing more popularity. Command line based interface
3. Linux can be used as Server Os or as stand alone Os on our PC. As a server Os it provides different services/network resources to client.
4. Server Os must be:Stable,Robust,Secure,High Performance.Linux offers all of the above characteristics. So Linux can be used as:
5. -> On stand alone workstation/PC for word processing, graphics, software development, internet, e-mail, chatting, small personal database management system etc.
6. ->In network environment as: * File and Print or Application Server Share the data, Connect the expensive device like printer and share it, e-mail within the LAN/intranet etc are some of the application. Linux Server with different Client Os
7. (B) Linux sever can be connected to Internet, So that PC's on intranet can share the internet/e-mail etc. You can put your web sever that run your web site or transmit the information on the internet. Linux Server can act as Proxy/Mail/WWW/Router Server etc.
16. Features of Linux: 1. Virtual memory, allowing the system to use disk room 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't access unauthorized areas. 5. Shared libraries 6. True multitasking 7. X - A graphical user interface similar to windows, but supports remote sessions over a network.
26. find: The find command searches through directories for files that match the specified criteria. It can take full pathnames and relative pathnames on the command line. To display the output on screen the print option must be specified
28. ls: Lists the files in the current directory Some of the available options are: -l gives a long listing -a displays all file{including hidden files
29. Ps: Gives information about all the active processes.
33. umask: Used to specify default permissions while creating files.
34. wc: The wc command can be used to count the number of lines, words and characters in a fine. wc [filename(s)] The available options are: wc [options] [filename] -1 -w -c
35. who: D isplays information about all the users currently logged onto the system. The user name, terminal number and the date and time that each user logged onto the system. The syntax of the who command is who [options]
51. LINUX DIRECTORIES: < / > The root directory. The starting point of your directory structure. This is where the Linux system begins. Every other file and directory on your system is under the root directory. Usually the root directory contains only subdirectories. < /boot > The place where Linux keeps information that it needs when booting up. < /bin > The /bin directory contains the most important programs that the system needs to operate, such as the shells, ls, grep, and other essential things.
52. < /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.
53. < /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 point.
54. < /sbin, /usr/sbin > Most system administration programs are stored in these directories. In many cases you must run these programs as the root user. < /var > This directory contains variable data that changes constantly when the system is running. Some interesting subdirectories: </var/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.
55. </var/mail> Incoming and outgoing mail is stored in this directory. </var/spool> This directory holds files that are queued for some process, like printing. < /tmp > Programs can write their temporary files here.
56. < /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. </usr/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.
58. ed Editor ed is a line-oriented text editor. It is used to create, display, modify and otherwise Manipulate text files. red is a restricted ed: it can only edit files in the current directory and cannot execute shell commands. Syntax: ed [-C] [-p string] [-s] [-] [-x] filename red [-C] [-p string] [-s | - ] [-x] filename
59. Emacs Editor Emacs is more than "just an editor" -- it provides a fully integrated user environment offering the sort of facilities.* Issue shell comands. * Open a window for a shell * Read and send mail * Read news * Access the internet * Write and test programs * Maintain a calendar * Play a game! There are two types of modes in Emacs.They are Major
63. It takes a file as input and prints the result on screen or redirects the output to a specified file. SYNTAX: sed [options] '{command}' [filename] OPTIONS: n do not output the trailing newline e enable interpretation of the backslash-escaped characters listed below v disable interpretation of those sequences in STRINGs
64. The Vi Editor This is the classic screen-based editor for UNIX. Apart from vim, there are a number of enhanced versions of vi, including elvis, nvi, and vile. The vi editor works in two modes, Command
65. insert. Command mode : letters or sequence of letters interactively command vi. Commands are case sensitive. The ESC key can end a command. Insert mode : Text is inserted. The ESC key ends insert mode and returns you to command mode. One can enter insert mode with the "i" (insert), "a" (insert after), "A" (insert at end of line), "o" (open new line after current line) or "O" (Open line above current line) commands.
66. vim editor Moving cursor around: Exiting from vim : let us now see how to exit from vim editor without saving changes. Vim editor has two modes: * command mode * editing mode
67. Command mode i s the one where we can instruct vim editor to exit to the command line ( shell ). To do that we need press ESC and type : q!. Character Deletion: delete character with x key Inserting Text : Press i or a in command mode and type Saving edited file : In command mode : wq or SHIFT+zz
68. Vim Operators and Motions Deleting Words delete word with dw command Delete to the end of the line delete to the end of the line with d operator and $ motion Motions and count number beginning of the line 0, end of the line $, end of the 2nd word 2e beginning of the 4th word 4w Deleting multiple words to delete 3 words you would use d3w Deleting lines to delete single line dd , delete n lines ndd Vim undo command undo changes with u
88. In crontab line, an asterisk (*) represents all possible values.
89. For example, if a * character appears in the fifth field, then the command mentioned in the line will be executed on all days of the week at the specified time.
91. If neccessary group of numbers can be specified within a single field seperated by commas.
92. Below are two typical crontab lines. 1. 0 0 * * * backup.sh When executed, the above line runs the backup.sh script at midnight everyday . 2. 00,30 09-17 * * 1-5 mail.sh When execute, the above lines runs the mail.sh script on all weekdays-Monday to Friday every half hour between 9 and 17 hours