All Questions
87
questions
5
votes
3
answers
3k
views
Missing the first character of a line on full screen apps on Linux server ssh'ed from OS X Terminal
I am having problems with the Terminal application on Mac OS X Snow Leopard.
I use ssh to connect to a remote Linux server and perform configuration file editing.
For some reason, it sometimes ...
2
votes
1
answer
205
views
What is the opposite of this terminal keyboard action?
Open terminal > preferences > keyboard
I have control cursor right as \005. I like it! When inside Vim, it moves the page down 1 line while keeping my cursor unmoved.
Try it.
My question is: how ...
0
votes
6
answers
2k
views
adding keyboard shortcuts for OSX terminal or xterm
Is there a way to add a keyboard shortcut for a terminal command in OSX. Basically most of the times i open the terminal app in MAC in order to ssh into a certain server foo. What I want to do is add ...
1
vote
3
answers
412
views
How \ why does echo $'\ec' work? What is it doing to clear the terminal?
On the terminal prompt for OS X I can type in echo $'\ec' and ti will clear the console. I have no idea why this works, though. What is it doing?
I'm guessing this would work on other versions of ...
25
votes
4
answers
56k
views
What's the difference between .profile and .bash_profile, and when do you configure which? (Mac) [duplicate]
Possible Duplicate:
Difference between .bashrc and .bash_profile
What's the difference between .profile and .bash_profile, and when do you configure which?
I.e if I configure the .bash_profile, ...
8
votes
2
answers
2k
views
Passing options to a program: what's the convention for one dash vs two?
Some programs will take options like this:
$ someprogram -orange apple
And other programs will use something like this:
$ otherprogram --orange apple
Is there a "rule" or convention for this in ...
1
vote
1
answer
3k
views
How do I recursively delete duplicate files using the terminal?
I'm using a mac, and just transferred a bunch o photos from another computer, and as it turns out, there is a bunch of duplicates...
So... I'm not too familiar with the mac terminal, but if there is ...
7
votes
2
answers
4k
views
How do you use "sips" at the terminal to resize an image, without upscaling?
I have some code that I've been using to resize images in Mac OS X via the command prompt (and/or quicksilver), to a maximum width or height of 500px. The only problem is that if the original image is ...
14
votes
6
answers
4k
views
Syncing bash profile between computers
I have tons of stuff in my .bash_profile. The problem is, I use ~3 computers very frequently, and I'm tired of having to copy paste my prefs everywhere. Two of them run Ubuntu 10.10, and one runs OSX. ...
10
votes
4
answers
77k
views
What does an arrow ("->") symbol mean on the command line?
I'm working with Terminal (Mac OS X), but I think this is a built-in part of Linux. Sometimes, when I execute a command, Terminal returns a new, indented line with just -> on the line. It seems ...
8
votes
2
answers
4k
views
ssh sessions in xterms freeze for many minutes whenever they disconnect
If I ssh to a remote machine and then lose internet connectivity, the session freezes.
I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several ...
16
votes
4
answers
84k
views
How do I recursively remove subdirectories and files, but not the first parent directory?
I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents.
find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf
However, I ...