terminal

Search terminal

Prepend Text to a File at the Command Line

Oct 7, 2010 - 3 Comments

You can easily prepend text to a file from the command line by using the following command syntax: cat file.txt | pbcopy && echo “Text to prepend” > file.txt && pbpaste >> file.txt In this case, the file to have text prepended to is ‘file.txt’, replace that with your own document. You may wish to … Read More

Monitor How and When a Process Accesses Files with opensnoop

Oct 6, 2010 - Leave a Comment

You can watch what a process is doing with your filesystem by using the opensnoop command. To try this out, launch the Terminal and then follow along to learn how to watch by applications, file usage, process ID, and more.

How to Check Bitrate of MP3, m4a, & Audio Files from Command Line of Mac OS X

Oct 4, 2010 - 10 Comments
Apple Music Icon

Mac users can quickly get the bitrate of any MP3, m4a, or other audio file from the command line of Mac OS X.

Compress All Files in a Directory by Command Line

Oct 4, 2010 - 1 Comment

This is a really great terminal command that compresses every file within a directory, turning them into a zip archive. We’ll offer two variants of it; one that removes the original source file and leaves only the compressed files, and another command that leaves the uncompressed source files intact. This has been tested and works … Read More

Command Line Cheat Sheet Wallpaper – Learn Commands with a Background Pic

Oct 1, 2010 - 15 Comments

If you’re new to using the command line and trying to learn the Terminal, setting a cheat sheet of command syntax for commonly used tricks as your background picture can be a pretty helpful way to help remember commands.

Play the Droid Sound Effect from Mac OS X

Sep 28, 2010 - 9 Comments

You know those Motorola Droid commercials where a robotic voice says “Droid”, or more accurately Drooooid? Oddly enough, your Mac may have been the originator of this sound, and without any additional software you have the ability to play and save the sound yourself right in OS X.

Open Any man Page in Preview and Save as PDF

Sep 27, 2010 - 6 Comments

If you’re tired of looking over a man (manual) page within the Terminal, you can use a nifty command sequence to launch any specified man page into the Preview app of Mac OS X. This is done by piping the standard man output into the open command and Preview. Launching the man Page into Preview … Read More

Disable the iTunes Ping button next to songs

Sep 25, 2010 - 56 Comments

iTunes 10.0.1 is a minor update that replaced the iTunes store arrows with a Ping pull-down menu button instead. I think it clutters the iTunes interface a bit so here’s how to remove this feature. Launch the Terminal and type or paste the following: defaults write com.apple.iTunes hide-ping-dropdown -bool TRUE Then quit and relaunch iTunes … Read More

Convert DOCX to DOC for Free with your Mac

Sep 22, 2010 - 21 Comments

If you need to convert a .docx file to .doc, don’t pay for one of the many conversion sites or utilities out there. Your Mac has the ability to handle the file conversion entirely on it’s own already built in, and it’s completely free, no downloads or third party software is required. To convert the … Read More

Start, Stop, and Restart Windows Services from Mac OS X

Sep 8, 2010 - Leave a Comment

Mac OS X includes Samba support by default, which allows for communication between OS X and Windows PC hardware. SMB is what enables simple Mac to Windows file sharing, but you can also go further and utilize the command line of OS X or Linux to remotely monitor, start, and stop services running on Windows … Read More

Change your Mac Hostname via Terminal

Sep 6, 2010 - 31 Comments

Need to change the hostname of a Mac? For most people if you want to change your Mac computer name you just do it through the Sharing system preference, it’s quick and very easy. For those of us that are more geekishly inclined, we like to do things through the Terminal. This tutorial will show … Read More

Set IP Address from the Mac Command Line

Sep 1, 2010 - 23 Comments

The quickest way to set your IP address from the command line is to use the versatile and powerful ipconfig utility, which is bundled directly with Mac OS X. We’ll show you how to set an IP address with ipconfig by retrieving one from a DHCP server, and also demonstrate how to set a specific … Read More

Check the PATH of your Mac with echo $PATH

Aug 31, 2010 - 1 Comment

Anytime that you run a command through the Terminal directly by a command name like ls or dscacheutil, your Mac is looking through a series of directories for that command to exist. This list of directories is called the PATH, and it’s a carry over from the unix underpinnings of Mac OS X. As you … Read More

Print a random tweet from the command line

Aug 27, 2010 - Leave a Comment

By pasting the following small function into your .profile, you’ll be able to print random tweets from any Twitter feed:

10 Good Unix Command Line Usage Habits and Tips

Aug 24, 2010 - 4 Comments

If you use the command line frequently, chances are you may have some bad command line habits. IBM’s DeveloperWorks site has posted 10 good UNIX usage habit tips, some of them are just pretty handy tricks in general and if you’re new to the Mac OS X Terminal, you’ll probably learn something since practically all … Read More

How to Use Twitter from the Command Line

Aug 23, 2010 - 5 Comments

Often overlooked, the Terminal can be used to accomplish all sorts of fun stuff. Something that you may find handy, is the ability to Tweet using built in Mac OS X command line utilities like curl. Yes, curl! Now of course this is not a full featured Twitter client by any means, but if you … Read More

Install Watch Command on Mac OS X

Aug 22, 2010 - 17 Comments

If there was one command I would really complain about not being on Mac OS X, it would be “watch”. Watch is one of those great pieces of software that is tiny and completely out of the way, but when needed it will be a life saver. We’re going to show you three different ways … Read More

How to Merge Directories in Mac OS X with ditto

Aug 12, 2010 - 6 Comments
Terminal in macOS

If you have two directories you need joined together, you can either drag and drop everything together, use the ‘mv’ command to move files manually, or, as we’ll show here, you can quickly merge any two directories within Mac OS X by using the command line tool ditto or ‘cp’. The command line is generally … Read More

Subscribe to OSXDaily

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

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site