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 | |
Results tagged with alias
Search options answers only
not deleted
user 10412
An alias is essentially nothing more than a keyboard shortcut, an abbreviation, a means of avoiding typing a long command sequence. This can save a great deal of typing at the command-line and avoid having to remember complex combinations of commands and options.
33
votes
Accepted
Show only hidden files (dot files) in ls alias
Either make the inner pair of quotes double quotes:
alias hidden='ls -a | grep "^\."'
Or make the outer pair of quotes double quotes:
alias hidden="ls -a | grep '^\.'" … Or make all quotes double quotes and escape the inner pair:
alias hidden="ls -a | grep \"^\.\""
Or make it a function, so you can pass some arguments when calling:
hidden() { ls -a "$@" | grep '^\ …
67
votes
Quick directory navigation in the bash shell
There is a shell variable CDPATH in bash and ksh and cdpath in zsh:
CDPATH The search path for the cd command. This is a colon-separated
list of directories in which the shell looks for …