Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Welcome to the TechnoWorldInc! Community!
Recent Updates
[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[February 14, 2024, 02:00:39 PM]

[February 14, 2024, 02:00:39 PM]

[February 14, 2024, 02:00:39 PM]

[February 14, 2024, 02:00:39 PM]

[February 08, 2024, 10:26:18 AM]

[February 08, 2024, 10:26:18 AM]

[February 08, 2024, 10:26:18 AM]

[February 08, 2024, 10:26:18 AM]

[November 27, 2023, 06:32:12 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   MegaPixelShop
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Programming Zone » Others
 Shell Introduction
Pages: [1]   Go Down
  Print  
Author Topic: Shell Introduction  (Read 2445 times)
Taruna
Elite Member
*****



Karma: 13
Offline Offline

Posts: 845

Hi ALL


View Profile
Shell Introduction
« Posted: January 03, 2007, 01:41:43 PM »


Hi all!
In previous two articles we discuss overview of computer system and brief introduction to operating system in user point of view.
In this article we discuss command based shell (bash).

Nowadays use of Desktop systems became common. So There is no need to enter any command, just by clicking with mouse we can accomplish any task. But command based shell has its own advantage. Work can be done fastly if we are comfortable with shell.

To experiment with shell. Run any of the programs like konsole, xterm,gnome-terminal,rxvt in KDE or GNOME desktop system or click <ctrl><alt><F1> to get virtual console. Terminal and console has same meaning.

Now we get command prompt. Now to know the commands starting with a type
$ a <tab>
Now we will see all commands starting with a . To know what is the functionality or usage of any command in the given list. Try the following
$ man <command> or
$ info <command> or
$ <command> -h or
$ <command --help

For example to list the contents of the current directory
enter
$ ls

To see the contents of some directory x
enter

$ ls x
bash shell has feature command name completion and file name completion. It means there is no need to enter full command or filename, after entering something if we press <tab> shell automatically completes.
For example to enter command fuser somefile.

$ fus<tab> some<tab>
it automatically completes to fuser somefile

You can use arrow keys to navigate through command history.

bash also contains command editing facilities.
<ctrl>u--erase the command from the cursor to the &nb sp; begin
<ctrl>k -- erase the command from the cursor to the end
<ctrl>l -- clear the screen
<ctrl>a -- move the cursor to the beginning of line
<ctrl>e -- move the cursor to the end of line
<ctrl>d -- exit the current session
<leftarrow>-- moves the cursor to left
<rightarrow>--moves the cursor to right
-- delete the character after cursor
<backspace>-- delete the character before cursor
<ctrl>r -- reverse search of history
<ctrl>s -- forward search of hostory
<ctrl>c -- cancel the execution of current command
<ctrl>z -- suspends the execution of current command

for more information see $man bash

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.074 seconds with 24 queries.