Thank you for purchasing through links and ads on this site.
OWC / MacSales.com...
diglloyd B&H Deal Finder...
Buy other stuff at Amazon.com...
Upgrade the memory of your 2020 iMac up to 128GB
877-865-7002
Today’s Deal Zone Items... Handpicked deals...
$280 $250
SAVE $30

$74 $74
SAVE $click

$4499 $3499
SAVE $1000

$1398 $898
SAVE $500

$649 $449
SAVE $200

$7595 $5995
SAVE $1600

$799 $499
SAVE $300

$2598 $2398
SAVE $200

$1498 $1398
SAVE $100

$249 $219
SAVE $30

$1699 $1299
SAVE $400

$21999 $19999
SAVE $2000

$8399 $7599
SAVE $800

$1149 $799
SAVE $350

$260 $180
SAVE $80

$4998 $3998
SAVE $1000

$569 $519
SAVE $50

$899 $799
SAVE $100

$2347 $1997
SAVE $350

$883 $633
SAVE $250

$1299 $949
SAVE $350

$1636 $1036
SAVE $600

$1699 $1299
SAVE $400

$1082 $929
SAVE $153

$1199 $1099
SAVE $100

OWC Thunderblade Thunderbolt 3 SSD

Blazing fast, up to 16TB.

YEE HAH!



√ No more slow and noisy hard drives!

Basics of Command Line

Last updated 2013-01-08 - Send Feedback
Related: command line, how-to, software

The command line is a powerful tool which can shorten and simplify many tasks.

However, the command line requires some investment in learning. This page covers a few very basic ideas in using the command line.

  • Lines preceeded with '#' are explanatory comments.
  • The prefix “diglloyd:MPG lloyd$ ” is a prompt emitted by the command line; do not type this; your system will have something of the same form reflecting your own system names.
  • Commands to type are shown in bold.

Very quick general tips for the command line

  • Spaces matter; they are used as separators on the command line. Hence “Macintosh HD” is a nuisance name for a volume, as is any file name with spaces (enclose in straight quotes ""). Hence I name my boot volume “Boot”, which is also shorter and easier to type.
  • Directory paths are separated by a forward slash "/".
  • Case sensitive: Boot ≠ boot ≠ BOOT.
  • The tab key will auto-complete filenames.
  • There are a variety of special characters to be aware of, but the main useful one is the "*" character which can be used to wild card file names instead of typing them out (e.g. “ls *.jpg” to list all .jpg files).
OWC Thunderbolt 3 Dock
Ideal for any Mac with Thunderbolt 3


Dual Thunderbolt 3 ports
USB 3 • USB-C
Gigabit Ethernet
5K and 4K display support plus Mini Display Port
Analog sound in/out and Optical sound out

Works on any Mac with Thunderbolt 3

Very brief examples of commands

The very, very basics.

Change directory

# change to home directory
diglloyd:MPG lloyd$ cd
# change to top level of the volume 'Master'
diglloyd:MPG lloyd$ cd /Volumes/Master
# change to top level of boot volume
diglloyd:MPG lloyd$ cd /
# change to Applications folder on boot volume
diglloyd:MPG lloyd$ cd /Applications

List files

# list files in current directory
diglloyd:MPG lloyd$ ls
# list files in current directory, recursively
diglloyd:MPG lloyd$ ls -lR
# list files in directory Photos on volume Master
diglloyd:MPG lloyd$ ls /Volumes/Master/Photos
# list all .jpg and .JPG files in current directory (wild card)
diglloyd:MPG lloyd$ ls *.jpg *.JPG

Run a command in the current directory

# run the command verifyVolumes.sh, found in the current directory
diglloyd:MPG lloyd$ ./VerifyVolumes.sh
OWC Envoy Pro EX SSD
Blazingly fast Thunderbolt 3 SSD!

Up to 4TB capacity, USB-C compatible.

USB-C model also available


Great for travel or for desktop!
OWC Envoy Express

World’s first Thunderbolt 3 M.2 NVME SSD enclosure.

Super fast, bus-powered, 3.3 oz, DIY easy, rugged and compact!


See also OWC Express 4M2
√ No more slow and noisy hard drives!
OWC Accelsior 4M2 PCIe SSD
6000 MB/sec!
Mac or PC.


Ideal for Lightroom, Photoshop, video.
Capacity up to 16TB!
View all handpicked deals...

SanDisk 256GB Extreme PRO UHS-I SDXC Memory Card
$74 $74
SAVE $click

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__