Command Line

Search Command Line

How to Create Symbolic Links at Command Line of Mac OS X

Aug 6, 2015 - 5 Comments
Terminal in OS X

A symbolic link created at the command line allows a linked object in the file system to point to an original object in a different location. In this way, symbolic links behave much like an alias does in the Mac OS X GUI, except that the linking and reference between files or folders is done … Read More

Release & Renew DHCP from the Command Line with ipconfig

Jul 30, 2015 - 3 Comments
Terminal in OS X

If you need to release and renew DHCP from the command line on a Mac, the helpful ipconfig utility is able to do so quickly. Do keep in mind that for most OS X users, renewing a DHCP lease from the Mac System Preferences is the best approach because it’s user friendly and just as … Read More

Where to Set Environment Variables in Mac OS X

Jul 28, 2015 - 7 Comments
Terminal in OS X

At the command line, environmental variables are defined for the current shell and become inherited by any running command or process. They can determine anything from the default shell, the PATH, the users home directory, to the terminal emulation type, current working directory, where a history file is located, language and localization settings, and going … Read More

How to Delete Old Backups from Time Machine on Mac

Jul 27, 2015 - 16 Comments
Time Machine in Mac OS X

If you use Time Machine to backup a Mac to an external drive, you may decide to manually delete old backups that are no longer needed. Yes, Time Machine does it’s own housekeeping, but sometimes users need to manually intervene. This can be for a variety of reasons, whether for simple removal of old backups, … Read More

How to Find Wi-Fi Network Passwords from Command Line on Mac

Jul 24, 2015 - 10 Comments
Terminal in OS X

Given the complexity of some wi-fi network passwords combined with the general infrequency of entering them and that they’re typically saved on use, it’s not terribly unusual to forget what a specific routers wireless password is. Fortunately, if you’re on a Mac, there are a few ways to go about finding those lost or forgotten … Read More

How to Add Gatekeeper Exceptions from Command Line in Mac OS X

Jul 15, 2015 - 7 Comments
Terminal in OS X

Typically if you want to have an application launch approved by the GateKeeper feature on a Mac, you right-click on the unidentified developers application and choose “Open”, or go through System Preferences to bypass Gatekeeper that way. Another option is to manually add application approvals and exceptions to Gatekeeper by turning to the command line … Read More

How to Load & Unload Kernel Extensions in OS X

Jun 24, 2015 - 5 Comments
Loading and unloading kernel extensions in Mac OS X

Kernel extensions, called kext for short, are modules of code that are loaded directly into the kernel space of OS X, able to run at a low-level to perform a variety of tasks. Most kexts are part of the core Mac OS X system software, typically hardware device drivers, but some third party apps will … Read More

How to Copy an ISO to a USB Drive from Mac OS X with dd

Jun 5, 2015 - 27 Comments
Find the disk identifier with diskutil list to direct dd to

If you have downloaded an ISO image of another operating system, say Ubuntu Linux or Windows 10, and you wish to turn that ISO image file into a bootable USB installer drive using a USB flash drive or USB key, you’ll find the most reliable way to copy or ‘burn’ the ISO to that target … Read More

Find Detailed Wi-Fi Connection History from Command Line of Mac OS X

Jun 3, 2015 - 3 Comments

There are some situations where knowing exactly what wireless networks a Mac has connected to and when that connection was last established can be helpful. We’ll demonstrate how to uncover a comprehensive listing of specifics about previously joined wi-fi networks, which will include the last connection date and time (to the second!), if the network … Read More

How to Change DNS from Command Line of Mac OS X

Jun 2, 2015 - 4 Comments
Terminal in OS X

Advanced Mac users may find it useful to know that DNS servers in OS X can be set from the command line, without having to turn to the System Preferences Network control panel. While the GUI Network control panel is undeniably the easiest approach for most Mac users, the command line method offers benefits for … Read More

How to Disable Gatekeeper from Command Line in Mac OS X

May 4, 2015 - 3 Comments
Gatekeeper warning in Mac OS X prevents unknown apps being launched

Though most Mac users will want to keep Gatekeeper enabled for security purposes, some advanced users find that Gatekeeper is overly zealous in preventing third party apps from being used in OS X. While it’s easy to turn off Gatekeeper through the System Preferences on a Mac, another option is to disable Gatekeeper by using … Read More

How to Read .cap Packet Capture File on Mac OS X with tcpdump

May 1, 2015 - Leave a Comment

Whether performing a packet trace or sniffing and capturing packets from a network, the result is usually the creation of a .cap capture file. That .cap, pcap, or wcap packet capture file is created regardless of what you’re using to sniff a network, a fairly common task among network administrators and security professionals. Perhaps the … Read More

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates