Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 01-20-2005, 02:26 PM   #1
Registered: Dec 2002
Posts: 48

Rep: Reputation: 15
suse 9.2 - /usr/bin/[ Executable - what is this?

suse 9.2 - /usr/bin/[ Executable - what is this?

By accident I saw this executable file 28.8 kb with no links! Can not execute as a console command or from Konqr.

linux:~ # cd /usr/bin
linux:/usr/bin # ./[
./[: missing `]'
linux:/usr/bin #

Any idea what is this for?
Old 01-20-2005, 07:17 PM   #2
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
try this and have a laugh:

/usr/bin/[ --help

it seems to be the 'test' program, but somehow somebody renamed it for some reason.
Old 01-20-2005, 08:38 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
The '[ ' command is part of the bash '[ ... ]' construct. I think it is an external command as well as a built in for historic reasons. Because that is how it was done by the Bourne shell.

The built in command test is synonymous with [ ... ].
Old 01-23-2005, 10:20 AM   #4
Registered: Dec 2002
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks rtspitz.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
Webmin: The Apache server executable /usr/local/apache2/bin does not exist hektor Linux - Software 0 01-14-2005 07:48 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 11:57 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration