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 not deleted user 37797

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.

0 votes

How do I remove a directory that has a file with colon in it

cd to the directory and type rm, press space, then tab. Autocomplete will fill the command with the folder name using the correct escaping to select the folder. You can then delete the folder by runni …
grg's user avatar
  • 206k
1 vote

Change mail back to embedding attachments

defaults delete com.apple.mail DisableInlineAttachmentViewing
grg's user avatar
  • 206k
0 votes
Accepted

Finding the file that's modified when you run a terminal command?

In general, you can use ‘opensnoop’ which will list files being accessed in realtime. You'll need to disable SIP to use this command. sudo opensnoop To use opensnoop on a specific process such as o …
grg's user avatar
  • 206k
2 votes
Accepted

Alt + left/right on my terminal moves my cursor word by word, however this does not work wit...

In Terminal preferences → Profiles → your profile → Keyboard, map alt-backspace to ctrl-w (\027). …
grg's user avatar
  • 206k
3 votes
Accepted

Modify terminal .command file to run on multiple files

The only line that does work in that script is xattr -c "$FILE" To run a command on all files in a folder, use find: find /path/to/folder -type f -exec xattr -c "{}" \; xattr also provides the - …
grg's user avatar
  • 206k
1 vote

Error in SUMO dlr

You haven’t provided a command, only options to a command. For example, ls -l runs ls with the option -l. Just -l on its own has no meaning. You’ve tried to run -n …, so there’s no command given.
grg's user avatar
  • 206k
2 votes

Using `say` to read terminal output from a command line tool?

<command> 2>&1 | while read line ; do echo $line | say ; done Replace <command> with the normal command that outputs what you would like to be spoken.
grg's user avatar
  • 206k
6 votes
Accepted

Toggle hot corners with a script

wvous-tl-corner is the top-left hot corner. Use ‘tl’, ‘tr’, ‘bl’, ‘br’ for each corner respectively, and use -int 0 to disable that corner. To find the integer for activating the hot corner of choice …
grg's user avatar
  • 206k
4 votes
Accepted

Yara in terminal

The default Terminal PS1 is: computername:directory user$ Therefore, Yara is your computer's name. …
grg's user avatar
  • 206k
7 votes

Is there a Terminal command to know the macOS installed but from an external hard drive or f...

The ProductVersion is stored within the SystemVersion.plist file in CoreServices. This can be read using defaults: defaults read /System/Library/CoreServices/SystemVersion ProductVersion When you'r …
grg's user avatar
  • 206k
12 votes

Show package contents from command line

You can simply cd into the package to open it in Terminal, then open Contents to open the contents in Finder. …
grg's user avatar
  • 206k
7 votes
Accepted

What does the Key icon mean when I type in a password in terminal?

It means that what you're about to type won't be printed out to the terminal — it's hidden input. It's not making any reference to Keychain or other security features. …
grg's user avatar
  • 206k
4 votes

`exit` man page

The man page on SS64 was written by the site admin, so will not be found on your system. My evidence for this is the page contains a link to a Q&A on Unix & Linux Stack Exchange including the user ID …
grg's user avatar
  • 206k
18 votes

What does 'Terminal' derive from?

See Computer terminal on Wikipedia. … As @8None1 elaborates in the comments below, the MacOS "Terminal" is more accurately a "terminal emulator" as described in the same Wikipedia article, since a terminal is a piece of hardware while the …
grg's user avatar
  • 206k
5 votes
Accepted

What do double quotes mean around a domain in `defaults`?

Defaults outputs old-style property lists. - is not a valid key character, so this would be an invalid plist without the quotes. With quotes, the parser understands that the entire string including th …
grg's user avatar
  • 206k

1
2 3 4 5
15
15 30 50 per page