About 573,000 results
Open links in new tab
  1. Bash test: what does "=~" do? - Unix & Linux Stack Exchange

    Jan 27, 2017 · I realize you said “read the bash man pages” but at first, I thought you meant read the man pages within bash. At any rate, man bash returns a huge file, which is 4139 lines (72 …

  2. bash - Difference between >> and - Unix & Linux Stack Exchange

    In general, in bash and other shells, you escape special characters using \. So, when you use echo foo >\> what you are saying is "redirect to a file called > ", but that is because you are …

  3. bash - What is the purpose of .bashrc and how does it work?

    I found the .bashrc file and I want to know the purpose/function of it. Also how and when is it used?

  4. What do the arguments '-v' and '-x' mean to bash?

    From man bash (yes, it's a big man page, usually Google search is faster): -x After expanding each simple command, for command, case command, select command, or arithmetic for …

  5. In a bash script, using the conditional "or" in an "if" statement

    This question is a sequel of sorts to my earlier question. The users on this site kindly helped me determine how to write a bash for loop that iterates over string values. For example, suppose th...

  6. What does || mean in bash? - Unix & Linux Stack Exchange

    Apologies if this is a duplicate post. I did try searching to see if someone already asked/answered this but didn't find anything. What does || mean in bash? For example, in researching steps to

  7. bash - How do I remove a directory and all its contents? - Unix

    Sep 25, 2025 · In bash all I know is that rmdir directoryname will remove the directory but only if it's empty. Is there a way to force remove subdirectories?

  8. bash - How can I assign the output of a command to a shell …

    A shell assignment is a single word, with no space after the equal sign. So what you wrote assigns an empty value to thefile; furthermore, since the assignment is grouped with a …

  9. bash - Where is .bashrc file found in Linux? - Unix & Linux Stack …

    Jun 24, 2015 · According to man bash: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file …

  10. bash - How to make a for loop in command line? - Unix & Linux …

    Jul 12, 2017 · The syntax of a for loop from the bash manual page is for name [ [ in [ word ... ] ] ; ] do list ; done The semicolons may be replaced with carriage returns, as noted elsewhere in …