Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 115523

Questions about the Terminal application or its terminal emulation should use this tag. Use **command-line** for questions about shells or command-line programs that do not specifically involve Terminal.

3 votes
Accepted

How do you replace commands in the terminal?

As an example, if using bash, adding alias vscode="open -a 'Visual Studio Code'" to your .bash_profile file will let you just type vscode in Terminal to open Visual Studio Code. …
user3439894's user avatar
  • 59.8k
5 votes

Error in opening Microsoft Word through Terminal

You are missing a space, it should be: open -a Microsoft\ Word Or: open -a "Microsoft Word" Program names that contain spaces need to be escaped with a \ backslash or use " quotes around the nam …
user3439894's user avatar
  • 59.8k
5 votes
Accepted

Is it possible to define the width/height of a Terminal window with this command: osascript ...

Then in Terminal, execute the following command: osascript -e 'tell application "Terminal" to get bounds of front window' It will return a four-item list of integers, e.g: 0, 22, 730, 531 Now move … the Terminal window to a different position on the screen and resize it. …
user3439894's user avatar
  • 59.8k
2 votes

Add login item from command line

You need to remove the backslash (\) from: cDock\ Helper.app You do not need to escape spaces in a path filename when it is in quotes. Only escape spaces in a path filename when it is not in quotes. …
user3439894's user avatar
  • 59.8k
2 votes
Accepted

How can I programmatically get the Terminal scrollback text?

/index.html URL in the contents of the entire scrolling buffer of the tab, then the following example AppleScript code can do that: tell application "Terminal" to ¬ set tabHistory to ¬ history … /usr/bin/osascript shebang, made executable and run from Terminal. …
user3439894's user avatar
  • 59.8k
9 votes
Accepted

Is there a Terminal command to get the current front most app's title?

Well there is, however if you run it directly in Terminal it's just going to return Terminal, as that's the frontmost application process that's visible. …
user3439894's user avatar
  • 59.8k
0 votes

Automator: Decode Decode64 selection and display output in a new TextEdit window

if your Automator Service/Quick Action is set to e.g. Service receives selected text in any application / Workflow receives text in any application, then in the Run Shell Script action with Pass input …
user3439894's user avatar
  • 59.8k
2 votes
Accepted

In which file Terminal.app stores its windows?

It is stored in the user's Saved Application State folder, located at: /Users/$USER/Library/Saved Application State/com.apple.Terminal.savedState
user3439894's user avatar
  • 59.8k
4 votes

Why can't I easily open web browsers from the terminal application?

It's probably safe to say that most Mac users do not open GUI apps via the CLI, which is why most GUI apps do not include the CLI support like TextMate does. In other words, TextMate actually include …
user3439894's user avatar
  • 59.8k
2 votes

Add bottom margin or scroll past last line in Mac OS Terminal

It keep's the history intact while returning the prompt to the top of the Terminal window. I added an alias for clear to my ~/.profile file. Or ~/.bash_profile file if using it instead. …
user3439894's user avatar
  • 59.8k
5 votes
Accepted

Should the pgrep command be available in OS X 10.7.5

In a Terminal type the following and press enter. whereis pgrep Looking at the contents of the InstallESD.dmg from "Install Mac OS X Lion.app", pgrep is not present. …
user3439894's user avatar
  • 59.8k
2 votes
Accepted

Terminal: command to show application folder

vmrun=\"`osascript -e 'tell application "Finder" to get POSIX path of (application file id "com.vmware.fusion" as alias)'`/Contents/Library/vmrun\" Now when I type vmrun, without any arguments, in a Terminal
user3439894's user avatar
  • 59.8k
1 vote

How to install the websploit framework in OS X 10.11.2?

To install it you'd run the install.sh in a Terminal. … Also where it says echo "Run From Terminal : sudo websploit" in the script, this is a message that's echoed and since /usr/local/share/websploit is not in the $PATH that command is not going to work as …
user3439894's user avatar
  • 59.8k
5 votes
Accepted

Removing characters from a string via Terminal

This seems to work: $ echo 'http://t.umblr.com/redirect?z=https%3A%2F%2Farchiveofourown.org%2Fworks%2F1885509&t=N2M3YmNhNjQzODU5MjI2NmE5ZjljY2Y4NWVhOTVhM2IwYzgyYzYyYixLOHhQakVRbA%3D%3D' | awk 'BEGIN{ …
user3439894's user avatar
  • 59.8k
0 votes
Accepted

Why can I not use xdg-open and gnome-open in Mac?

If you're trying to open an image file like a .png, .jpg, etc. from Terminal in OS X, you can use open filename.png where filename.png is the actual pathname of the target image file. … In Terminal, type man open and press enter to read the BSD General Commands Manual for the open command. …
user3439894's user avatar
  • 59.8k

1
2 3 4 5
12
15 30 50 per page