Tag Archives: bash

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

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