LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-26-2003, 01:11 PM   #16
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69

Yeah, which again is odd... Easily could be done with an alias or a soft symlink, but they chose to do it this way instead, I wonder what the reasoning is..

Cool
 
Old 08-26-2003, 01:31 PM   #17
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Huh. I guess Patrick didn't think it was a good reason. I can't find dir or vdir on my system - just a man page to all three and I couldn't figure anything from it that would indicate what was up. This is really weird. I can't find them in the system and I can't find an alias, but the commands work. I can't find anything in the bash man - I got to thinking maybe it was a builtin in 2.05b or something. What am I missing? vdir even prints out a funky display, like with preset options, which the man page says both are supposed to have. But if they function differently, they can't be hard links *either*. Or can they?

Maybe it's just a test to keep us on our toes.
 
Old 08-26-2003, 01:37 PM   #18
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
8.1 doesn't have it, at least not from the set of packages I installed. I was quite happy to see I didn't have it too

Cool
 
Old 08-26-2003, 02:12 PM   #19
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah but, if it isn't a builtin or alias, I thought it had to be an actual file. How's it executing? What's executing? I even tried the info pages to see if it said anything different.

Wait - I just backgrounded and foregrounded vdir and got
[1]+ Done /bin/ls $LS_OPTIONS --format=long

And dir gives
[1]+ Done /bin/ls $LS_OPTIONS --format=vertical

But where are *they* coming from? Oddly, when I 'su' the command's not found for root, but when I 'su -', it is. And the path differences are trivial - numerous, but trivial.

It was kind of a funny novelty at first but this is starting to bug me. Ah well. I suppose there are more important things to figure out.
 
Old 08-26-2003, 02:20 PM   #20
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Post up:
env

Cool
 
Old 08-26-2003, 02:39 PM   #21
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
The whole thing or a particular part?
 
Old 08-26-2003, 09:04 PM   #22
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Anything specific to LS bit would be cool...

Cool
 
Old 08-26-2003, 10:52 PM   #23
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
LS_OPTIONS= --color=auto -F -b -T 0

Other than LS_COLORS, that's the only LS or OPTIONS and is the same for user and root.
 
Old 08-27-2003, 09:42 AM   #24
flapjackboy
Member
 
Registered: Jul 2003
Location: Norwich, UK
Distribution: Mandrake 9.1
Posts: 310

Rep: Reputation: 30
that is the one cool feature of ls that dir just can't do, is colorization of filenames, relevant to their type. Makes it much easier to see what the files are, as a lot of files, you can't tell whether they're files or directories.
 
Old 08-27-2003, 01:43 PM   #25
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Weird that you can't, since they're the 'same' things, but I couldn't get it to do it, either. -F does append symbols at the end of the filenames indicating major categories, though, which does make it easier than sorting out the permissions at the front of 'ls -l'.
 
  


Reply



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
Caldera open Linux file size pve Linux - Distributions 2 07-23-2004 12:38 PM
What is Your 1st Linux BOX? demmylls General 33 03-11-2004 11:35 AM
From SCO Unix 5.0.4 to Caldera Linux mikesievers Linux - General 0 04-25-2002 09:42 AM
NEVER used linux - 1st of many questions neverusedlinux Linux - Newbie 6 04-14-2002 06:08 PM
Accessing Linux Caldera C.CS.Josh Linux - General 1 10-05-2001 08:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 01:57 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