EmbLogic's Blog

Category Archives: Shell Scripts

Shell & Shell Scripting

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

Posted in Shell Scripts | Leave a comment

Single Client Server And Single Thread Communication Using FIFO With Use The Shell Script

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

Posted in Project 03: Client Server Communication using Linux and IPC, Shell Scripts | Leave a comment

ls – list command

ls – list command ================= – ls means list directory content – Prototype : ls [OPTION] … [FILE] … – Exit status It returns 0 ,on success Returns 1 in case of minor problems (eg. cannot access subdirectory) returns 2 … Continue reading

Posted in Shell Scripts | Tagged , , , , , , , , , , , | Leave a comment

CD – Change Directory Command

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

Posted in Shell Scripts | Tagged , , , , , , | Leave a comment

Common linux virtual directories

Common Linux Virtual Directories ================================= Directory               Usage / Root                     of virtual directory. No files are placed here (normally) /bin         … Continue reading

Posted in Shell Scripts | Tagged , , , , , , , , | Leave a comment

Linux Filesystem

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

Posted in Shell Scripts | Tagged , , , , | Leave a comment

How to get help in Linux – Fedora

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

Posted in Shell Scripts | Tagged , , , , , , , , | Leave a comment

How to change default prompt in BASH shell

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

Posted in Shell Scripts | Tagged , , , , , , , , | Leave a comment

Command line Prompt – PS1, PS2

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

Posted in Shell Scripts | Tagged , , , , , , , , | Leave a comment

Linux Run Levels

Linux Run Levels ================ Run Level    Description 0                    Halt 1                     Single-User mode 2                    Multi-user mode, usually … Continue reading

Posted in Shell Scripts | Tagged , , , , , | Leave a comment

Boot process of linux

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

Posted in Shell Scripts | Tagged , , , , | Leave a comment

Python (widely used language)

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

Posted in Shell Scripts | Leave a comment

Shell Script basics

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

Posted in Shell Scripts | Leave a comment

working on shell scripting

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

Posted in Shell Scripts | Leave a comment

how to give command line arguments to a self defined command created using shell scripting?

  this script uses two arguments given while using the command (script name) which it uses to replace $1 (first argument) $2 (second argument).

Posted in Shell Scripts | Leave a comment