Skip to main content
Tour
About Us
Meta
current community
Stack Exchange
chat
Meta Stack Exchange
your communities
Sign up
or
log in
to customize your list.
more stack exchange communities
company blog
Log in
Stack Exchange
All Sites
Top 400 Users
Digests
sch
top
accounts
reputation
activity
subscriptions
Top Questions
490
votes
Why not use "which"? What to use then?
shell
history
which
portability
asked Aug 1, 2013 at 22:58
unix.stackexchange.com
276
votes
Security implications of forgetting to quote a variable in bash/POSIX shells
bash
shell
shell-script
security
quoting
asked Dec 3, 2014 at 21:59
unix.stackexchange.com
127
votes
On what systems is //foo/bar different from /foo/bar?
filenames
history
portability
slash
asked Jan 20, 2016 at 10:20
unix.stackexchange.com
46
votes
Why the "-" in the "#! /bin/sh -" shebang?
shell-script
asked Mar 15, 2017 at 21:39
unix.stackexchange.com
45
votes
What's wrong with var=$(</dev/stdin) to read stdin into a variable?
bash
zsh
io-redirection
ksh
stdin
asked Sep 7, 2022 at 8:22
unix.stackexchange.com
41
votes
Most efficient way to check if $string starts with $needle in perl
performance
perl
string-matching
asked Jul 30, 2015 at 13:00
stackoverflow.com
33
votes
Security implications of running perl -ne '...' *
security
perl
filenames
options
asked Nov 26, 2014 at 8:15
unix.stackexchange.com
30
votes
How can we know who's at the other end of a pseudo-terminal device?
terminal-emulator
open-files
pty
asked Jun 11, 2014 at 20:12
unix.stackexchange.com
29
votes
How to execute an arbitrary simple command over ssh without knowing the login shell of the remote user?
ssh
quoting
portability
asked May 25, 2015 at 20:11
unix.stackexchange.com
26
votes
find . -print0 | xargs -0 cmd vs find . -exec cmd {} +
find
xargs
asked Jan 7, 2023 at 10:55
unix.stackexchange.com
1
2
3
4
next
Top Answers
993
Why is printf better than echo?
unix.stackexchange.com
545
Why not use "which"? What to use then?
unix.stackexchange.com
514
What does "LC_ALL=C" do?
unix.stackexchange.com
499
How do I trim leading and trailing whitespace from each line of some output?
unix.stackexchange.com
390
How to export variables from a file?
unix.stackexchange.com
390
Why is using a shell loop to process text considered bad practice?
unix.stackexchange.com
329
ssh-add complains: Could not open a connection to your authentication agent
unix.stackexchange.com
307
Why do I need a tty to run sudo if I can sudo without a password?
unix.stackexchange.com
293
Security implications of forgetting to quote a variable in bash/POSIX shells
unix.stackexchange.com
292
How to tell gzip to keep original file?
unix.stackexchange.com
286
How to determine where an environment variable came from?
unix.stackexchange.com
268
Sort based on the third column
unix.stackexchange.com
264
How to make `sudo` preserve $PATH?
unix.stackexchange.com
236
How to stop the find command after first match?
unix.stackexchange.com
209
When was the shellshock (CVE-2014-6271/7169) bug introduced, and what is the patch that fully fixes it?
unix.stackexchange.com
208
Find and remove large files that are open but have been deleted
unix.stackexchange.com
201
Simple way to create a tunnel from one local port to another?
unix.stackexchange.com
183
How do you use the command coproc in various shells?
unix.stackexchange.com
174
The result of ls * , ls ** and ls ***
unix.stackexchange.com
174
`find` with multiple `-name` and `-exec` executes only the last matches of `-name`
unix.stackexchange.com
172
Understanding "IFS= read -r line"
unix.stackexchange.com
161
List all available ssl ca certificates
unix.stackexchange.com
159
What is the difference between "cat file | ./binary" and "./binary < file"?
unix.stackexchange.com
151
Remove last character from line
unix.stackexchange.com
148
Copy the contents of a file into the clipboard without displaying its contents
unix.stackexchange.com
146
How to run grep with multiple AND patterns?
unix.stackexchange.com
145
How can I use column to delimit on tabs and not spaces?
unix.stackexchange.com
139
remove particular characters from a variable using bash
unix.stackexchange.com
129
How can I remove the BOM from a UTF-8 file?
unix.stackexchange.com
127
Why does Ctrl-D (EOF) exit the shell?
unix.stackexchange.com
1
2
3
4
5
…
10
next