Shell & Shell Scripting Shell is the medium or intermediator between the user and computer and act as an form of wrapper around the Operating system hence termed Shell. It helps the user to connect with the system kernels to … Continue reading
RCS file: header.h,v Working file: header.h head: 1.15 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 15; selected revisions: 15 description: In file all include header files related this project. —————————- revision 1.15 date: 2016/02/25 06:18:43; … Continue reading
CD – Change Directory Command ============================= – cd means change working directory – Prototype: cd [-L | -P] [directory] cd – -If you do not give any directory to cd command, it will take you to home directory. eg. cd … Continue reading
Common Linux Virtual Directories ================================= Directory Usage / Root of virtual directory. No files are placed here (normally) /bin … Continue reading
Linux Filesystem ================ – In windows, physical drive determines the pathname of the file. – Windows assigns a letter to each disk drive. – Each directory contains its own directory structure for accesing files stored in it. – For eg. … Continue reading
To get help in fedora ===================== To learn about any new command, function or utility in Fedora we can get help from it. It has 3 such commands :- i) man pages – These are manual pages . – It … Continue reading
To change default prompt :- ======================== – We can change default prompt by assigning the character to it. – Each character have a specific meaning. BASH Shell Prompt Characters :- Character Description \a Bell Character \d Date in format “Day … Continue reading
Command line Prompt =================== Environmental variables that controls Command line Prompt PS1 : Controls the format of default command line prompt. PS2 : Controls the format of second-tier command line prompt. PS3 : Controls the format of tertiary command line … Continue reading
Linux Run Levels ================ Run Level Description 0 Halt 1 Single-User mode 2 Multi-user mode, usually … Continue reading
The boot process of linux ========================= – After you turn on your Linux System, linux kernel loads into memory and runs. – Firstly, it runs the init process. – init program is usually located at /sbin/init. – init process has … Continue reading
Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C. The language provides … Continue reading
RCS file: script,v Working file: script head: 1.34 branch: locks: strict akshat: 1.34 access list: symbolic names: keyword substitution: kv total revisions: 34; selected revisions: 34 description: Introduction to shell script. Shells are wrappers around os, shells can act as … Continue reading
RCS file: scripting1.sh,v 3 Working file: scripting1.sh 4 head: 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 0 11 description: 12 scripting 13 printing value using “echo” 14 ============================================================================ RCS … Continue reading
this script uses two arguments given while using the command (script name) which it uses to replace $1 (first argument) $2 (second argument).