Mac OS X 10. New interchange 2 cd. 5 includes a number of changes to its Unix core, perhaps more than in any prior OS X release. Many of the changes are routine -- updated versions of key Unix programs like the bash shell (from 2.0.5b to 3.2), the vi text editor (from version 6.2 to 7.0), and even the man manual page reader (from 1.5o1 to 1.6c). Most of these alterations, however, will be invisible to the casual Terminal user -- though the new versions may contain some additional features, the programs will still work as they did before. More interesting are the totally new (or substantially revised) Unix commands in 10.5. Here are my picks for the five most interesting and useful ones. Those pesky dot-underscore If you've ever used a USB memory stick to move files to a Windows or Linux machine, or written files to a server that doesn't use the Mac's HFS file system, you're probably familiar with the 'dot-underscore files' that are created when you do so; depending on what you did to the files and/or folders on the Mac, you will see any number of file names that begin with dot-underscore (._), followed by the names of the other folders on the disk.
The Mac uses these files on its HFS disk, but they are useless on other systems. [ Stay up to date with. Get. ] Prior to 10.5, you had to manually delete them on the other system or use Terminal trickery to remove them on the Mac prior to copying. As of 10.5, though, you can just use the dot_clean command on the directory in question. Type dot_clean /path/folder to join the dot-underscore files with their parent files. Read OS X 10.5's manual pages (man dot_clean ) for more information. Learn about kernel extensions Kernel extensions (also known as kexts) are low-level pieces of code that talk directly to the heart of the Mac operating system.
They are powerful and potentially dangerous: If there's a bug in a kernel extension, it can crash your Mac. (At worst, a buggy program can crash only itself.) In 10.5, you can use the kextfind command to find out which kernel extensions are on your machine. Most of the kernel extensions on your Mac are bundled with OS X; you can see exactly what's installed by using the command kextfind -case-insensitive -bundle-id -substring 'com.apple. ' -print more. Art gallery mackay. While that command may look intimidating, it's actually pretty straightforward.
You may want to establish a full IP connection to a remote host (or remote lan) but you may not have any VPN software on the remote host, or on your host. Anyway, the point of this hint is that I used this all the time under Tiger, and when I upgraded my home and work Macs to Leopard, this broke. Specifically Mac » Mac » (destination) bouncing broke. I kept getting 'Connection closed by remote host' errors. Many Unix users may be familiar with ClusterSSH. This tool allows you to open up ssh terminal sessions to many hosts (like when administering a cluster), and then send commands to all of the connected machines simultaneously. L et us start new year with these Unix and Linux command line tricks to increase productivity at the Terminal. I have found them over the years, and I am now going to share with you. I have found them over the years, and I am now going to share with you.
The -case-insensitive argument tells the system to find all matches, regardless of capitalization. Next, -bundle-id and -substring tell kextfind to look for the text string 'com.apple. ' in the extension's bundle identifier.