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 2313

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.

1 vote
Accepted

How to correctly handle two different versions running commands from Terminal?

The safest way is to make sure /usr/local/bin comes before /usr/bin in your $PATH variable.
Ɱark Ƭ's user avatar
  • 9,646
0 votes

OS X Terminal not recognizing any commands

Try removing that line from ~/.bash_profile then open a new terminal window and verify that your paths are set correctly. …
Ɱark Ƭ's user avatar
  • 9,646
1 vote

Permanently show hidden directories

Files & folders that start with a period will always be hidden in the Finder, and in Terminal listings (ls command, unless you use the -a flag i.e. …
Ɱark Ƭ's user avatar
  • 9,646
0 votes
Accepted

Make meta + arrows count underscore as words?

Try modifying nxhtml-mode-hook. (add-hook 'nxhtml-mode-hook (lambda () (modify-syntax-entry ?_ "w")))
Ɱark Ƭ's user avatar
  • 9,646
1 vote

After typing sudo I can no longer autocomplete commands by pressing Tab

It would help to know what shell you are using. This works for me in both bash and zsh. The completion in zsh is much better than bash. One thing you could do is to type the command you want using t …
Ɱark Ƭ's user avatar
  • 9,646
2 votes
Accepted

terminal starts with `no such file or directory` message

You need to edit your profile (.profile, .bashrc, .zshrc, .tcshrc, etc… that is appropriate for your chosen shell) and remove any lines that contain "Enthought". It might be a bit more complicated tha …
Ɱark Ƭ's user avatar
  • 9,646
2 votes

atd stopped working on OS X 10.10.3

That message suggests that you don't have the correct privileges to run atq. Try running it with sudo from the command line to see if that helps i.e.: > atq atq: cannot regain privs: Operation not pe …
Ɱark Ƭ's user avatar
  • 9,646
0 votes

alias not working in terminal

If you follow Sublime Text's recommended procedure of creating a symbolic link to their command line tool you will be able to open files, use as an $EDITOR with git, subversion, etc… It gives much mor …
Ɱark Ƭ's user avatar
  • 9,646
25 votes
Accepted

Why does OS X Mavericks block the purge command in Terminal?

You need to run this command with root privileges. Try: > sudo purge WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check …
Ɱark Ƭ's user avatar
  • 9,646
1 vote

Improved Terminal autocomplete funcionality (similar to Matlab's)

This is a feature of the shell. Control-R will do what you describe, but changing to a more modern shell will get you so much more. Take a look at Z-shell (zsh), there is a bit of a learning curve, bu …
Ɱark Ƭ's user avatar
  • 9,646
1 vote

How to undo "sudo rm -rf /etc/apache2/other/+php-osx.conf"

You can't undo what you did, unless you can recover the files from a Time Machine backup. PHP probably stopped running because you removed files it needs.
Ɱark Ƭ's user avatar
  • 9,646
6 votes
Accepted

Auto login with FileVault in El Captain

Run the following command in Terminal: sudo fdesetup authrestart …
Ɱark Ƭ's user avatar
  • 9,646
16 votes
Accepted

How to launch TextMate (and probably other software) from the command line?

Such as: /Applications/TextMate\ 2.app/Contents/MacOS/TextMate & The problem with this is that if the shell exits (by quitting Terminal or closing the window) then TextMate is terminated without warning …
Ɱark Ƭ's user avatar
  • 9,646
1 vote

TimeMachine restore issue

It sounds like your $PATH is not set correctly. All you probably need to do is set your $PATH in your shell config (.profile, .bashrc, .zshrc, etc… for whatever shell you are using). For bash derived …
Ɱark Ƭ's user avatar
  • 9,646
7 votes

Can't change folder permissions

To unlock your folder try: Terminal > chflags nouchg ~/sites/lockedfolder Alternatively, you could do a Get Info in the Finder, and uncheck the "Locked" checkbox from that window. …
Ɱark Ƭ's user avatar
  • 9,646