Skip to main content

All Questions

Tagged with
64 votes
6 answers
15k views

Equivalent/Alternatives for Alt+Dot in Mac

One thing i miss from the Linux shell is the Alt+Dot shortcut. What it does is insert the last argument of the previous command. It appears to be a trivial technique, but it's really useful. i.e. if ...
pablasso's user avatar
  • 819
41 votes
4 answers
128k views

Searching Mac Through Terminal?

are there any commands to search your Mac using terminal? I tried usin grep to search but it seems somewhat unresponsive and nothing comes up. For example, I would type "grep Files" (A folder name) ...
JFW's user avatar
  • 2,444
38 votes
4 answers
66k views

combining commands on the terminal on Mac OS X

I would like to write the following on one line in the terminal or if there is a shorter way to create a file and set the permissions then please do comment. sudo touch .htaccess sudo chmod 766 ....
Derren's user avatar
  • 389
29 votes
4 answers
140k views

Make the background black, not white on Linux/Mac OS X Terminal?

All I want to do is make the background for Mac OS X's Terminal Black so that I can run a Perl script with Terminal and have the background black for that. How would I do this for Mac OS X? How would ...
user avatar
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, ...
Imran's user avatar
  • 373
17 votes
7 answers
17k views

Any way to avoid dot-slash when running executable scripts in bash?

let's say I have a script. chmod +x myscript Now to run this I go ./myscript But is there any way I could just run it by typing myscript ???
foreyez's user avatar
  • 398
13 votes
2 answers
4k views

Use of / when using cd

I'm in my home directory on my mac: $ pwd /Users/lukas When I cd around, I do not (and can't) start the path with /: $ cd Documents/ /Users/lukas/Documents $ cd /Documents -bash: cd: /Documents: ...
LukasKawerau's user avatar
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 ...
Josh Leitzel's user avatar
9 votes
2 answers
34k views

How to launch Chrome with explicit "hardware acceleration" setting?

There is an advanced setting in Google Chrome to toggle "hardware acceleration." On a Mac, I want to be able to choose whether Chrome launches with this option on or off. Any way to do this? (from ...
d0g's user avatar
  • 2,300
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 ...
cwd's user avatar
  • 18.3k
5 votes
1 answer
68 views

How to reposition window in SSH session? I am logging into a Linux machine from a Mac machine

I am using a Mac with XQuartz to display an X application running on a remote CentOS machine. I'm trying to reposition the window from the remote machine using my keyboard, as it opens in such a way ...
blaughli's user avatar
5 votes
1 answer
213 views

Can one install linux on a Mac via ssh?

Title says it all, read on if you think this an odd request. I realize that this question is quite unusual, but ssh and FTP are the only access methods for my Mac. Why I'm doing this: The situation: I ...
user184429's user avatar
5 votes
2 answers
6k views

is there a linux equivalent of iTerm(mac) sending command to multiple tabs functionality?

in iTerm, you can send a command to execute simultaneously on a set of already opened tabs. Is there a way to do this in linux (with gnome-terminal preferably)? for instance, supposed that I had 10 ...
jabbertalker's user avatar
4 votes
1 answer
3k views

How to add blank lines above the bottom in terminal

In vim and many other text editors, you can scroll up the end of the file to the top of your screen while showing the rest of the lines as blank. But in terminal, by default, the end of line is fixed ...
Kohki Mametani's user avatar
4 votes
0 answers
305 views

Matching bracket selection on gnome-terminal, like Mac OSX terminal

I have recently fallen for a (non obvious) feature of the Mac OSX terminal: Given a display of some kind of deeply nested text with lots of matching brackets, parenthesis, or quotes (ie. JSON), the ...
codysehl's user avatar
  • 348

15 30 50 per page