To view the full path of the current directory, type: The ~ indicates that the current directory is my user directory. MacBook is the name of my machine, Jon is my username. Last login: Mon Jan 5 15:27:17 on ttys000 It doesn't matter if yours has a different value to mine.ĭirectory navigationYou will see something like this on screen: If you resize the window these numbers will change. Incidentally, if your title bar doesn't say "bash", type bash and press enter.Ĩ0x24 refers to the number of characters that can be displayed on screen at once - 80 horizontally and 24 vertically. There are various different shells available, each with minor differences. The title bar of my window says "Terminal - bash - 80x24".īash refers to the shell I am using. I find it useful to ctrl-click the dock icon and select Keep in Dock so it is always there for convenience, but this is up to you. Setting upFirst of all, open up the Terminal by navigating to /Applications/Utilities and double-clicking the Terminal application. While most VFX houses use some form of Linux, Mac OS X's Terminal is almost identical with the exception of a small number of proprietary commands. If you are thinking of entering the visual effects industry, most employers will expect basic command-line knowledge and shell scripting abilities. And you don't even need to constantly type things either - you can write a shell script to perform a task and set it to run automatically. You can perform operations on a large number of files at once in a fraction of a second, saving a lot of time.Īlthough the GUI is prettier and more intuitive, constantly moving, clicking and dragging the mouse around the screen wastes time - not to mention that rendering the GUI takes away precious processing cycles from the operation you are trying to perform. It's really not that scary - in fact, it can actually be a very useful timesaving device. The openvt command creates a new virtual console, which can only be done by root and isn't used very often in this century since most people only ever work in a graphical window environment.Getting to know the Terminal Part 1: Basic File OperationsThe Terminal is an application that drives fear into the heart of a lot of Mac users - an application they only dream of using in their worst possible nightmares. The open command you encountered is an older name for the openvt command (some Linux distributions only include it under the name openvt). Replace … by the path where the sublime_text executable is, of course. It's really the job of the makers of Sublime Text to make this automatic, but if they haven't done it, you can probably do it yourself by running the command sudo -s …/sublime_text /usr/local/bin deb or rpm), so it's possible that you need to do an extra installation step. I've never used it, and apparently it comes as a tar archive, not as a distribution package (e.g. If running the command sublime_text shell doesn't work for you, then Sublime Text hasn't been installed properly. Linux doesn't have any application database, but it's organized in such a way that it doesn't need one. OS X needs an extra level of indirection, through open -a, to handle applications which are unpacked in a single directory tree and registered in an application database. For example, all executable programs are in a small set of directories and all those directories are listed in the PATH variable running sublime_text looks up a file called sublime_text in the directories listed in PATH. Linux, like other Unix systems (but not, as far as I know, the non-Unixy parts of OS X) manages software by tracking it with a package manager, and puts individual files where they are used. More precisely, you need to type the name of the executable program that implements the application. That's because the normal way to open a file in an application is to simply type the name of the application followed by the name of the file. Xdg-open doesn't have an equivalent of OSX's open -a to open a file in specific application. The equivalent of that on modern non-OSX unices is xdg-open. The primary purpose of OS X's open command is to open a file in the associated application.
0 Comments
Leave a Reply. |