Viewers: in countries Watching now:
Unix for Mac OS X Users unlocks the powerful capabilities of Unix that underlie Mac OS X, teaching how to use command-line syntax to perform common tasks such as file management, data entry, and text manipulation. The course teaches Unix from the ground up, starting with the basics of the command line and graduating to powerful, advanced tools like grep, sed, and xargs. The course shows how to enter commands in Terminal to create, move, copy, and delete files and folders; change file ownership and permissions; view and stop command and application processes; find and edit data within files; and use command-line shortcuts to speed up workflow. Exercise files accompany the course.
So far all of our configurations for our Unix working environment have been done in either the .bash_profile configuration file, or in .bashrc and that's typically the two places that you'll locate them, because those are the files that get read in when you first start a new session and they set things up the way you like. But there is one other configuration file that I don't want us to forget about, which is the logout file. That's in bash_logout, and anything that's in there will get executed whenever we log out of Unix. Let's take a look at how it works. Let's create a new file. You see I don't have a bash_logout file right now, So let's do nano .bash_logout and in it let's just put echo "See ya later!", which is nice and simple.
That's the command that we get run whenever we log out. Now on a Mac, let me just show you first of all that there is the file .bash_logout. Now on a Mac, it's not that useful because if we close this window, if we just go up here and close it, well then we'll never see that echo statement. If we do it this way, exit, then you see it run, "See ya later!" Now you may be thinking, "Well, if I normally just close the window, why have this file at all?" Well, immediately you won't use it very much, but I just want you to know that that's there. You could use it. It could alert you if there's some unfinished business before you log out.
It could start a database backup as soon as you logout. It could notify friends who are on the same server that you've left the server. It could record some things in a log file or maybe clear out some temporary files that you left behind. All of those types of things could be put into a bash_logout file and even though you aren't seeing them, you certainly won't see anything that's echoed, it does get executed. So for example, if you had a clearing out some temporary files, Unix would gracefully close out, run everything in the bash_logout file as the window was closing.
So again, it's certainly the least useful of the configuration files, but it's still important not to forget that it's there.
Find answers to the most frequently asked questions about Unix for Mac OS X Users .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.