LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-20-2005, 02:26 PM   #1
nathanv117
Member
 
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
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

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

Code:
/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
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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
nathanv117
Member
 
Registered: Dec 2002
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks rtspitz.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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

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