http://ga.rgoyle.com
Join Date: May 2004
Location: In your dock hiding behind your finder icon!
|
I have been using Linux and the likes for a few years now and never came across this little gem before. Hope you find it useful
Code:
cd - This takes you to the previous directory you were in. not the parent like ".." does. So if you were in "/Users/fred/Desktop" then you cd to "/Users/bob/Desktop". Doing a "cd -" will take you back to freds desktop directory.Enjoy. OK, I have given up keeping this sig up to date. Lets just say I'm the guy that installs every latest version as soon as its available! Last edited by Gargoyle : 2004-05-31 at 04:29. Reason: Title change |
quote |
‽
|
You can even combine those. cd -- will take you *two* steps back.
|
quote |
Unique Like Everyone Else
|
Well would you look at that. I dunno though its not very often I go skipping around to random directories that are not parents of each other and need to go back. If this had happened to me in the past odds are I cd'ed the entire path in which case I would just hit the up arrow the desired number of times and cd to that dir again.
Either way thanks for the tip WARNING: Do not let Dr. Mario touch your genitals. He is not a real doctor. |
quote |
Antimatter Man
Join Date: May 2004
Location: that interweb thing
|
terminal typing is ok.
being able to drag and drop directory listings into terminal directly from finder is better. and of course there's always the coolest terminal trick for sci-fi fans. telnet towel.blinkenlights.nl set your terminal window translucency and sit back and watch |
quote |
Finally broke the seal
Join Date: May 2004
|
similar to that 'cd -' trick is the pushd & popd pair, and dirs. if you are using the bash shell (and presumably others), pushd will act just like cd. but, popd acts like 'cd -'. using these names, i find, helps amplify the stack nature of the directories. and a call to 'dirs' lists the stack, incase you want to go far back in the annals of history, and have lost your way. oh, perhaps worthy of mention, pushd and popd aren't exactly like 'cd'. they are like 'cd $@;dirs', b/c after going to a dir, they list out the contents of the directory stack.
|
quote |
http://ga.rgoyle.com
Join Date: May 2004
Location: In your dock hiding behind your finder icon!
|
Bah, editing the title in the first post still does not change the title of the thread... Which is probably a good thing...
Do us a favour mod, change this to just "Terminal Tricks" and other people can keep posting new tricks. Ta OK, I have given up keeping this sig up to date. Lets just say I'm the guy that installs every latest version as soon as its available! |
quote |
9" monochrome
Join Date: May 2004
Location: 🇦🇺
|
Quote:
Dragging form the finder is cool, but so is this. Thanks for enlightening me. |
|
quote |
Member
Join Date: May 2004
Location: Paris, FR
|
how do I force quit an app that does NOT want to quit?
Also, when im in terminal, and run TOP is there a way to see more of the application names? There are multiple instances of "Apple" and Microsoft", etc... I'm having deja-vu and amnesia at the same time. I think I've forgotten this before. |
quote |
Finally broke the seal
Join Date: May 2004
|
Quote:
for f in 0 1 2 3; for d in 0 1 2 3 4 5 6 7 8 9; sudo kill -$f$d pid to the second item, if you stretch your terminal window wider you can see more. moving beyond that, i don't think top gives you many options. actually, there should be a configuration bit somewhere in there to cut or alter some of the columns. i dont remember how to do that though. `ps ax` has less wide output (iirc), and you can avoid the width problem by 'piping' it to less, ie `ps ax | less`. then you should be able to get the full file names. |
|
quote |
‽
|
Quote:
2. Create two AppleScripts: tell application "System Events" to set theApp to name of the first process whose frontmost is true do shell script "killall " & quoted form of theApp and tell application "System Events" to set theApp to name of the first process whose frontmost is true do shell script "killall -9 " & quoted form of theApp 3. Save the first as "Kill Frontmost Application.scpt" and the second as "Force-Kill Frontmost Application.scpt". 4. Assign keyboard shortcuts. Now, whenever you have an application that seems to hang, try Kill first, and if that doesn't seem to do the job, Force-Kill definitely should. (If that still doesn't do it, then your entire GUI is hanging.) |
|
quote |
Posting Rules | Navigation |
|
Thread Tools | |