background preloader


Facebook Twitter

The Unix Command Line: Files & Folders. Manipulating Files and Folders: cp - Copy a file (or directory). Notes: The cp command does not understand all of the characteristics of files on HFS+ partitions, and will not completely copy files that have resource forks, type&creator codes, or other Mac-specific characteristics. To fully copy such files, use the Finder, or the ditto -rsrcFork command. If a file already exists under the name given for the copy, it will be deleted (and replaced with the copied file) without any warning or chance of recovery. If a folder exists under the name given for the copy, the copy will be placed inside that directory, with the same name as the original file. CpMac - Copy a Mac file (or directory).

This command is very similar to cp, but with different options. Note: The CpMac command is not installed as part of the standard installation of Mac OS X, but is installed with the optional Developer Tools disk. Ditto - copy a directory, preserving many characteristics of the enclosed files. How to access external HD thru terminal | Communities. SSH Example. Linux and UNIX cd command help and examples.

Quick links About cd Syntax Examples Related commands Related Q&A Linux and Unix main page About cd The cd command, which stands for "change directory", changes the shell's current working directory. Description The cd command is one of the commands you will use the most at the command line in linux. About Directories To help you organize your files, your file system contains special files called directories. All files and directories on your system stem from one main directory: the root directory.

Any directory which is contained inside another directory is called a subdirectory. All directories on your file system are subdirectories of the root directory. Note: By default, when you open a terminal and begin using the command line, you are placed in your home directory. How Directories Are Represented Directories are separated by a forward slash ("/"). To change into this directory, and make it our working directory, we would use the command: cd documents/work/accounting cd / cd . cd documents cd . List of command line commands. Background The command line is a text interface for your computer. It's a program that takes in commands, which it passes on to the computer's operating system to run. From the command line, you can navigate through files and folders on your computer, just as you would with Windows Explorer on Windows or Finder on Mac OS.

The difference is that the command line is fully text-based. Here's an appendix of commonly used commands. Commands $ cat oceans.txt > continents.txt > takes the standard output of the command on the left, and redirects it to the file on the right. $ cat glaciers.txt >> rivers.txt >> takes the standard output of the command on the left and appends (adds) it to the file on the right. $ cat < lakes.txt < takes the standard input from the file on the right and inputs it into the program on the left. $ cat volcanoes.txt | wc | is a "pipe". ~/.bash_profile $ nano ~/.bash_profile ~/.bash_profile is the name of file used to store environment settings.

Alias alias pd="pwd" cd cd Desktop/ cd .. Terminal 101: Changing the Screenshot Capture Location. Posted 12/16/2013 at 3:59pm | by Cory Bohon Every Monday, we'll show you how to do something new and simple with Apple's built-in command line application. You don't need any fancy software, or a knowledge of coding to do any of these. All you need is a keyboard to type 'em out! Last week, we covered how to change the format of screenshots captured by the built-in OS X screen capture utility. This week, we want to tackle the way screenshots are saved, specifically taking a look at where they're saved. By default, OS X saves these screen captures to your Desktop on OS X.

Changing the Screenshot Capture Location To change the screenshot capture location to a new place on your Mac, first think of a location that would serve you properly. Defaults write location /Users/[u]/Pictures/Screenshots/ Replace "[u]" with the name of the user on your system. Killall SystemUIServer Reverting the Capture Location back to the Desktop. DataCamp. You probably did not learn how to ride the bike by reading a book, or by watching a movie. The same is true for data science. You learn-by-doing. Each course focuses on solving data science problems via fun coding challenges. Learning shouldn't be dull. That's why we did our best to make the learning experience as engaging and interactive as possible. Get your assignments in bite-size chunks, and work your way through the cards while learning one of the most fundamental job skills of the future.

Top 10 Best Cheat Sheets and Tutorials for Linux / UNIX Commands. Cheat sheet act as a reference tool which provides cut and paste kind of commands to complete a specific task. I often recommend following set of best cheat sheets to students and IT professionals. It include Linux/UNIX command and shell scripting. Unix Toolbox This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing. => Visit UNIX Toolbox UNIX Tutorial for Beginners A beginners guide to the Unix and Linux operating system. => Visit UNIX Tutorial for Beginners Linux Command and Learning Shell Tutorials You have Linux installed and running. => Visit Learning the shell Learn UNIX in 10 minutes This is something that I had given out to students (CAD user training) in years past.

=> Visit Learning UNIX in 10 minutes How To Look Like A UNIX Guru => Visit How To Look Like A UNIX Guru Linux command line reference Share this on: Quick Reference: Unix Commands. New Mactuts+ Session: Taming the Terminal - Tuts+ Computer Skills Article. 40 Terminal Tips and Tricks You Never Thought You Needed - Tuts+ Computer Skills Tutorial. The Terminal is an exceptionally powerful tool, providing a command line interface to the underpinnings of OS X. It’s a topic we’ve covered at length before with our popular series Taming the Terminal.

There’s a great deal that Terminal can do, from moving large numbers of files to changing preferences that we didn’t even know exist. To demonstrate just how versatile the Terminal is, I’ve rounded up 40 truly excellent Terminal tips and tricks that can come in very handy. All of the Terminal commands I’ll be showing you are perfectly safe to use and, when it comes to changing preferences, are completely reversible. As always, make sure you have a recent backup in case something does happen. Tip: If you’re unfamiliar with Terminal, I would strongly encourage you to read our introductory series on the topic, Taming the Terminal. Terminal is located in the Applications > Utilities folder. Within Terminal, you’ll see something like this: This is the prompt, where we enter our commands. 10 Terminal Commands That Every Mac User Should Know - Tuts+ Computer Skills Tutorial. The Terminal in OS X is often, in my opinion anyway, an overlooked area of the operating system.

Most newcomers to Macs look at it with fear, as the sight of anything code-related or advanced is enough to put them off for life. Fortunately, you don't have to be scared of Terminal and think of it as a feature just for the tech-minded. Knowing some basic Terminal commands can really enhance your experience of OS X. So, for all the beginners out there, here is my pick of the top 10 Terminal commands that every Mac user should know. Before We Start... Before we start tinkering around with it, it is probably worth taking a couple of minutes to tell you exactly what Terminal is (all in a non-technical sense, of course!). running under OS X (Lion). Terminal (officially called is, strictly speaking, an emulator and works off most typical UNIX commands (OS X is a UNIX-based system, as opposed to Windows, which is NT-based). 1. 2. 3. 4. 5. 6. 7. Et, voilà! 8. 9. 10.

25 Terminal Tips Every Mac User Should Know. Posted 12/11/2008 at 11:40am | by Johnathon Williams From customizing your Mac’s secret system preferences to remotely controlling another Mac or manipulating text files in a handful of sly ways, the terminal utility is more than just a Mac geek’s home base. It’s a place where, with a few expert tricks, all Mac users can feel right at home.

If there’s a more neglected or misunderstood Mac utility than the Terminal, OS X’s built-in command-line app, we’ve yet to find it. In an age where Apple’s $200 smart phone offers the most intuitive graphical user interface the world has ever seen, turning to a text-only command-line window can seem stubbornly retro, reminding us of audiophiles who vociferously insist that vinyl records sound better than music CDs.

The first thing to know about the Terminal is how to launch it, which you do by going to \Applications\Utilities\Terminal. 1. 2. By default, the Terminal targets your Home directory (folders are called directories in Terminal-speak). 3. 11 Unix Commands Every Mac Geek Should Know. Posted 01/31/2011 at 2:26pm | by Cory Bohon Just imagine, a little over 20 years ago we were barely able to drag a mouse across the screen, let alone get around a desktop interface without typing in a few command lines. Forunately, things have drastically changed, but the command line still provides a powerful way of interacting with your Mac.

Unfortunately, most Mac users never dive into Unix because of how intimidating it can seem at first. But familiarizing yourself with it -- even a little bit -- is a great way to build up your coding arsenal. Because the Mac is based around a Unix kernel, the commands you learn below can be used with Mac, Unix, or Linux-based systems. Let’s get started learning some Unix commands. Open Terminal (located in /Application/Utilities). 1. ls This command is used to list the directories and files while browsing through the command line. Ls -l - Gives a long listing of the files and directories in the current directory. 2. cd cd Music 3. pwd 4. mkdir mkdir Test. Computers.tutsplus. Did you know that you can play Tetris on your Mac? Of course you did, you can play lots of games. But did you know that there's already a Tetris game built in?

In fact, if you know your way around Emacs, you can play a whole bunch of awesome retro games like pong and snake. Read on to see how. Yep. Tucked deep into the recesses of your Mac's darkest corners, there's a whole list of delightfully retro applications specifically written for a text editor called Emacs. In this tutorial, I'll walk you through the step by step process of getting to the screen where you launch the games and show you the hidden directory where you can see a list of your options. The first thing that you need to do is open Terminal, which is located inside of the "Utilities" folder inside of your "Applications" folder.

Terminal is located inside of your Utilities folder I know this is scary, but don't worry. That being said, always take caution when opening Terminal. That's it! Type "emacs" and hit Return.