RIP
Tutorial
Tags
Topics
Examples
eBooks
Download sh (PDF)
sh
Getting started with sh
Arithmetic Expansion
IO Redirection
Job Control
Quoting
Test
Multiple Expressions
The `read` command
sh
Getting started with sh
Arithmetic Expansion
IO Redirection
Job Control
Quoting
Test
Multiple Expressions
The `read` command
sh
Test
Help us
to keep this website almost Ad Free! It takes only
10 seconds
of your time:
> Step 1
: Go view our video on YouTube:
EF Core Bulk Extensions
> Step 2
: And Like the video. BONUS: You can also share it!
Syntax
test
test
[!] [ -n | -z ]
string
test
[!] { -b | -c | -d | -e | -f | -g | -h | -L | -p | -r | -S | -s | -u | -w | -x }
file
test
[!] -t
fd
test
[!]
string
{ = | != }
string
test
[!]
integer
{ -eq | -ne | -gt | -ge | -lt | -le }
integer
[
]
[
[!] [ -n | -z ]
string
]
[
[!] { -b | -c | -d | -e | -f | -g | -h | -L | -p | -r | -S | -s | -u | -w | -x }
file
]
[
[!] -t
fd
]
[
[!]
string
{ = | != }
string
]
[
[!]
integer
{ -eq | -ne | -gt | -ge | -lt | -le }
integer
]
Remarks
If
test(1)
is run without any arguments it returns false.
Reference
Standard
test(1)
The FreeBSD
test(1)
man-page
The NetBSD
test(1)
man-page
The OpenBSD
test(1)
man-page
The Illumos
test(1)
man-page
The GNU Coreutils online manual section on
test(1)
Test Related Examples
Multiple Expressions
Got any sh Question?
Ask any sh Questions and Get Instant Answers from ChatGPT AI:
ChatGPT answer me!
PDF
- Download
sh
for free
Previous
Next
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website