newbie terminal question

Joined
Oct 3, 2017
Messages
2
Reaction score
0
Points
1
I am new to terminal. Trying to list files in a directory using the wildcard character.
When I type: ls *.*
I get: VBox.log VBox.log.1 VBox.log.2 VBox.log.3
However when I type: ls Vbox*
I get: No such file or directory
What am I doing wrong?
Thanks
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
If you're typing exactly like here, know this: Terminal is case sensitive. VBox is not the same as Vbox.
 
Joined
Apr 16, 2016
Messages
1,096
Reaction score
51
Points
48
Location
CT
Your Mac's Specs
MacBook Air Mid-2012 / iMac Retina 5K Late-2014
I'm presuming that you are running VirtualBox as that's their naming standard for their logs.

I can confirm that:

ls *.* will yield the results you indicated.
ls Vbox* will yield no output.
ls VBox* will show the log files correctly.

As stated - case-sensitive
 

IWT


Joined
Jan 23, 2009
Messages
10,291
Reaction score
2,230
Points
113
Location
Born Scotland. Worked all over UK. Live in Wales
Your Mac's Specs
M2 Max Studio Extra, 32GB memory, 4TB, Sonoma 14.4.1 Apple 5K Retina Studio Monitor
@rasala

A warm welcome to Mac-Forums.

With no offence intended at all, may I just remind you that Terminal is an extremely potent tool. Please be very, very careful what you type in. There are commands that can damage or destroy your HDD/SSD.

Ian
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top