Linux Concepts : Level 2
Editor Buffers:
File permissions in Linux:
Conventions for naming directories:
/usr:-
Contains subdirectories of interest to users
/bin:-
Contains executable versions of sytem utilities and other user commands
/sbin:-
Contains executable programs used to when you are system starts up and for manual recovery from A system failure
/dev:-
Contains files that correspond to external devices such as printers.
/etc:-
Contains installation-specific files,. such as the password ( file /etc/passwd) that are required for ssytem administrator. It contains configuration files and directories for diffderent programs
/home:-
Often used for the home directories of individual users
/lib:- or /usr/lib:-
Contains compiled C subprogram libraries
/usr/local:-
Contains a collection of subdirectories that partially mirror the top-level structure and contains installation-specific files
/usr/src:-
Contains Linux source files, that is, the text of the C programs that come with your system
/usr/include:-
Contains header files for C programs
/usr/share:-
Contains platform-indepenedent textual information such as manual pages, run-time databases, and source files
/usr/sbin:-
Contains executable programs used for system administration ina sytem that is running normally
/usr/tmp:-
An alternative to /tmp
/tmp:-
Contaons temporary files created by various programs as they are operating
/var:-
Contaiin administrative files that often change or are in transit, such as files awaiting printing, mail messages, and log files
/var/adm:- and /usr/adm:-
Contain accoutning information ,diagnostic files generated at the time of system crashes, and similar information needed by system administrators
/var/spool:- and /usr/spool:-
Contains spool files, that is, temporary files awaiting processing.These include files to be printed, administrative logs, files to be sent to other computers, and files received from other computers that are waiting to bve picked up by users
/proc:-
Conatins active system processes by number, amemory image fo teh machine, and otherv "pseudo-files" that don't represent stored information but are usefully treated as though they did
/stand:- and /kernel:-
Contains the system kernel
Pipelining commands
For example,
grep "pest" phones | sort
calls the program grep which extracts from the file phones all lines containing the string "pest" and produces these lines as a standard output.
The output is then piped to sort, which sees that output as its standard input. The output of the entire command line is a sorted list of the lines in phone containing 'pest'
Comments
Post a Comment