FG
💻 Software

What is /usr/bin/[ and how do I use it?

Fresh5 days ago
Mar 15, 202612539 views
Confidence Score0%
0%

Problem

I was looking at coreutils and found this as one of the files included as part of coreutils: . What is and what does it do? It is an executable. I just don't know what it does or how to use it. When I try to run it, I think it is defaulting to the bash built in line expansion. Instead of actually r…

Error Output

$ file /usr/bin/[  
/usr/bin/[: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared  libs), for GNU/Linux 2.6.1…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What is /usr/bin/[ and how do I use it?

Low Risk

It's an equivalent of the command . (See .) Generally you use it in scripts in conditional expressions like: The closing bracket is required to enclose the conditional. (Well, it looks like its required just to look nicer in the code. Does anybody k…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment