PDA

View Full Version : newbie terminal question



rasala
10-03-2017, 06:13 PM
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

cradom
10-03-2017, 08:52 PM
If you're typing exactly like here, know this: Terminal is case sensitive. VBox is not the same as Vbox.

Ember1205
10-03-2017, 10:47 PM
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

rasala
10-04-2017, 04:36 AM
Thanks!

IWT
10-04-2017, 05:05 AM
@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