Author
Released
4/29/2011- Moving around the file system
- Creating and reading files
- Copying, moving, renaming, and deleting files and directories
- Creating hard links and symbolic links
- Understanding user identity, file ownership, and sudo
- Setting file permissions with alpha and octal notation
- Changing the PATH variable
- Using the command history
- Directing input and output
- Configuring the Unix working environment
- Searching and replacing using grep and regular expressions
- Manipulating text with tr, sed, and cut
- Integrating with the Finder, Spotlight, and AppleScript
Skill Level Beginner
Duration
Views
- [Voiceover] Welcome to Unix for Mac OS X users. My name is Kevin Skoglund, and as a web developer, I probably spend as much time working in Unix as I do writing code. In this course, we're going to learn to use the powerful Unix operating system that's built-in to Mac OS X. I will walk you through the fundamental concepts used in Unix, we will discover the Unix file system. And learn to create, find, copy, and delete files and directories all from the command line. We will see how user accounts function in a multi-user environment. And learn how to manage file ownership in user permissions. I will also cover dozens of useful Unix commands.
Everything from simple calculators to tools that monitor and manage every process running on your computer. And I'll introduce you to some Power User techniques that will allow you to find, alter, or capture almost any text or system information. Now, most of what we cover will be useful in any Unix environment. Whether it's Mac, Lenox, or something else. But in the final chapter, I'll demonstrate many useful Mac only commands and techniques that can speed up your work flow and give you more power and control over your Mac. It doesn't matter if you're a complete beginner or have some prior experience, we're going to cover all the fundamentals you need to become comfortable working from the Unix command line.
So let's get started learning Unix.
Q: The exercise files for the following movies appear to be broken:
07_02_files
07_03_files
07_04_files
07_05_files
08_03_files
Is there something wrong with them?
These exercises include one or more "dot files", whose file names start with a period. These files are normally hidden from view by the Finder. So that they would show up in the Finder, the period has been removed from the file names. Additionally, "_example" has been added at the end of the file name to make it clear that the file will not work as-is.
To make the dot files usable, either:
1) Open the file in a text editor to view its contents. Note that it may not be possible to double-click the file to open it because there is no file extension (such as .txt).
2) Resave the file under a new name (usually by choosing File > Save As), adding a "." to the beginning of the file name and removing "_example" from the end.
OR
1) Copy and rename the file from the Unix command line using the techniques discussed in this course. Rename the file by adding a "." to the start and removing "_example" from the end. Include the "-i" option to prevent overwriting an existing file unexpectedly.
Example: cp -i ~/Desktop/Exercise\ Files/Chapter_07/07_02_files/bashrc_example ~/.bashrc
The instructor uses the UNIX program 'units' to convert 72° Fahrenheit to degrees Celsius. The returned value of 40 is incorrect. The correct result should be 22°C. What's the reason for this discrepancy?
The problem is that units does the 5/9 calculation but does not have the ability to subtract 32. Â So you'll need to subtract (or add) the 32 degrees yourself.
-
Introduction
-
Introduction1m 10s
-
Using the exercise files2m 43s
-
-
1. Introduction to Unix
-
What is Unix?7m 27s
-
The terminal application4m 23s
-
Command structure5m 22s
-
Kernel and shells5m 25s
-
Unix manual pages4m 6s
-
-
2. Filesystem Basics
-
The working directory2m 49s
-
Moving around the filesystem4m 58s
-
Filesystem organization4m 12s
-
-
3. Working with Files and Directories
-
Naming files5m 40s
-
Creating files2m 19s
-
Unix text editors6m 39s
-
Reading files5m 35s
-
Reading portions of files3m 27s
-
Creating directories2m 40s
-
Finder aliases in Unix4m 10s
-
Hard links5m 30s
-
Symbolic links6m 36s
-
-
4. Ownership and Permissions
-
Who am I?4m 3s
-
Unix groups1m 52s
-
File and directory ownership6m 41s
-
The root user1m 57s
-
sudo and sudoers5m 20s
-
-
5. Commands and Programs
-
Command basics4m 4s
-
The PATH variable4m 13s
-
System information commands3m 40s
-
Monitoring processes3m 36s
-
Stopping processes3m 19s
-
Text file helpers6m 50s
-
Utility programs7m 28s
-
Using the command history8m 16s
-
-
6. Directing Input and Output
-
Directing output to a file4m 13s
-
Appending to a file2m 44s
-
Directing input from a file5m 28s
-
Piping output to input4m 40s
-
Suppressing output2m 10s
-
7. Configuring Your Working Environment
-
Setting command aliases6m 59s
-
Setting the PATH variable6m 10s
-
Logout file1m 52s
-
8. Unix Power Tools
-
grep: Coloring matched text2m 57s
-
tr: Translating characters8m 17s
-
sed: Stream editor7m 45s
-
diff: Comparing files4m 35s
-
diff: Alternative formats4m 30s
-
xargs: Usage examples7m 59s
-
9. Useful Mac-Only Commands and Techniques
-
Finder integration4m 45s
-
Clipboard integration5m 4s
-
Screen capture3m 42s
-
Shut down, reboot, and sleep3m 34s
-
Text to speech2m 36s
-
Using AppleScript5m 23s
-
-
Conclusion
-
Conclusion1m 26s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Introduction