![]() md ), and for some reason… probably that i'm typing this on a mobile device, I don't see a preview of MarkDown -> rendered HTML display. This is one of very few adventures into MarkDown (.Conclusion and Closing ThoughtsĪm I missing a flag? Is there a trailing slash that need or need not be in my tar command? For example: a call in your project code could find ~/bin/some-command, but the path would be wrong regardless as root ( / ) is now just a directory inside a directory inside my " In-Progress" directory. I could see this being handy in cases where you wanted to unpack an archive in a specific way to maintain a directory path structure - perhaps with files that were used within your project, some files and directories may need to be in specific locations. ![]() I've rarely seen this in the thousands of tar, tgz, zip, and other compressed/combined archives I have unpacked over the years. …command that was run prior to the tar command with the source pointing to the project name and the destination pointing to a long directory tree of empty directories. It's as if there's was a: mkdir -P /Volumes/drive-name/Users/me/Documents/Jobs/GitHub/In-Progress/Project-Name/cats So " cats", once unpacked, has become a directory structure of: /Volumes/drive-name/Users/me/Documents/Jobs/GitHub/In-Progress/Project-Name/cats/all-my-cats-files.Įach of the directories is empty aside from it's parent directory, which it would have to be or the tar command would spend a considerable amount of time packing up the " me", " Documents", and " In-Progress" directories. Opening that directory I see tar has created an entire directory tree of empty directories back to the root drive. tar, gzip, zip, and many others, while maintaining file meta-data, the end result is a directory called " cats". Users/me/Documents/Jobs/GitHub/In-Progress/Project-Name And I create a tar file named " cats.tgz" which I unpack by double-clicking the file - OS X has a native Application that can unpack. When I unpack one of the tar archives, the results are not as expected. LaunchBar's strength is it's ability to be extremely fast at adding and removing from the Index, all with a sub 3MB memory overhead. ( On-site and remote ) I don't waste tons of time in the LaunchBar Index/Preferences - the Index for LaunchBar changes frequently enough it's not feasible to manually exclude finished projects. ( *I don't use "Empty Trash" as supplied by the OS but have selective file removal ( rm ) based on file age and extension ) tgz files(s) that are older than 2 weeks and rm's them, as by that time I haven't touched them and feel it's safe to delete them. ![]() I mv the original files in ~/.Trash versus rm'ing them in case tar fails or I need to make last minute changes. My Commands tar cvfz "project.tgz" "project"` mv "project" ~/.Trash What is the official position on using a leading dash in tar arguments? I've see it done three ways: no leading dash, leading dash, leading dash with each argument used individually. I use the g flag to gzip and tar the file in the same command. I have gotten in the habit of archiving finished projects with tar. Enough that it is would be too frequent an operation and too much mental memory overhead, plus locating the file(s) in the index is something I would do too frequently to not automate the procedure. app ) and even harder to hide the Search Index Manager. When I'm done with a project I no longer want it in my index - I can open the index and exclude that project from showing up in LaunchBar, which works, but LaunchBar tries hard to hide itself and it's application bundle (. LaunchBar creates an index of all your files for lightning fast access to your entire file system plus some other application specific niceties, eg: move files, copy files, resize files, play songs, skip songs, add reminders/notes, google search, tight integration with the entire OS, append text, and amusingly enough, you can create. Start typing the first few characters of an app, file, command, shell script, AppleScript, etc., press return, and the command is invoked. Press command-space ( configurable ) and a small window pops up. ![]() LaunchBar is an application launcher invoked by a keyboard command. I use the tar command on Mac OS X often, primarily because I rely heavily of find and " LaunchBar".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |