Find the answer to your Linux question:
Results 1 to 3 of 3
i am beginner in linux . if there is any command which shows that the priviously typed command is successfully executed or not .i mean echo?...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    15

    echo?

    i am beginner in linux . if there is any command which shows that the priviously typed command is successfully executed or not .i mean echo?

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,099
    You will find your answer in the link below.
    It lists special variables of bash
    Reference Cards
    You must always face the curtain with a bow.

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Sort of. Commands have an exit status. Successful commands return an exit status of 0, unsuccessful commands return a non-zero number. You can get the exit status of the last command with

    Code:
    echo $?
    Is that what you're looking for?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...