About 2,620,000 results
Open links in new tab
  1. What is the $? (dollar question mark) variable in shell scripting?

    I'm trying to learn shell scripting, and I need to understand someone else's code. What is the $? variable hold? I can't Google search the answer because they block punctuation characters.

  2. bash - Shell equality operators (=, ==, -eq) - Stack Overflow

    Shell equality operators (=, ==, -eq) Asked 11 years, 10 months ago Modified 3 years, 4 months ago Viewed 644k times

  3. How to highlight bash/shell commands in markdown?

    Here shell is an alias for bash. Chroma has something called Session. Pygments (doc) uses console, shell-session for bash sessions, pwsh-session, ps1con for power shell sessions and …

  4. error in unix shell script - Unix & Linux Stack Exchange

    You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I …

  5. Difference between Login Shell and Non-Login Shell?

    May 8, 2012 · I understand the basic difference between an interactive shell and a non-interactive shell. But what exactly differentiates a login shell from a non-login shell? Can you give …

  6. shell - How to mkdir only if a directory does not already exist ...

    I am writing a shell script to run under the KornShell (ksh) on AIX. I would like to use the mkdir command to create a directory. But the directory may already exist, in which case I do not …

  7. shell - How can I compare numbers in Bash? - Stack Overflow

    Oct 22, 2019 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

  8. How do I get into a Docker container's shell? - Stack Overflow

    May 11, 2015 · docker debug <container or image> It allows you to get a shell (bash/fish/zsh) into any container. It also works for stopped containers and images. Essentially it's a replacement …

  9. Assigning default values to shell variables with a single command …

    Jan 6, 2010 · 11 The provided answers are great but i wanted to share the following table and the bash one-liners as a summary of all what was written (feel free to enhance this summary 🤗): …

  10. How to echo shell commands as they are executed - Stack Overflow

    May 18, 2010 · Special shell variables verbose If set, causes the words of each command to be printed, after history substitution (if any). Set by the -v command line option. echo If set, each …