Search Results
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 |
Zsh or Z Shell is the default Unix shell used by Terminal in macOS since 10.15
21
votes
I accidentally used "touch .." , is there a way to safely delete this document?
Do not delete it! In unixish filesystems (including macOS), .. is a link to the parent directory. So if you were in the directory /Users/Serax/Desktop and you ran touch .., that's equivalent to touch …
2
votes
Why can't I use zsh?
To change this, run:
sudo dsconfigad -shell /bin/zsh
...and then probably reboot to make sure change takes effect. …
2
votes
How to remove new line from Terminal on launch?
echo automatically adds a newline to the end of what it prints; since the escape sequence it's printing doesn't actually display anything on screen, this has the effect of printing a blank line. One o …
8
votes
Accepted
zsh does not find script in PATH while bash does (echo $PATH is the same)
But nothing else does. zsh doesn't, ksh doesn't, and probably more importantly the OS doesn't, so a PATH entry with ~ won't be recognized in a find ... …
3
votes
How do I set the working directory as the tab title in Terminal for Mac?
But since zsh wasn't the default shell, Apple didn't bother to create the equivalent setup scripts for zsh. … The mechanics are different (for example, zsh uses add-zsh-hook precmd instead of the PROMPT_COMMAND variable), but it does essentially the same thing. …
2
votes
sudo ownership and permission changed and shows `sudo: /usr/local/bin/sudo must be owned by ...
You messed up the ownership of /usr/local/bin/sudo, but /usr/bin/sudo is ok so you can use that to repair the other:
/usr/bin/sudo root /usr/local/bin/sudo
There are probably other problems, since yo …