75 Zsh Commands, Plugins, Aliases and Tools - SitePoint (2023)

Computing

    Developer Tools

James Hibbard

(Video) Lazy Loading Prismjs Languages - Day 13

Share

I spend a lot of my day in the terminal, and my shell of choice is Zsh — a highly customizable Unix shell that packs some very powerful features. As I’m a lazy developerTM, I’m always looking for ways to type less and to automate all the things. Luckily this is something that Zsh lends itself well to.

In this post, I’m going to share with you 75 commands, plugins, aliases and tools that will hopefully save you some keystrokes and make you more productive in your day-to-day work.

If you don’t have Zsh installed on your machine, then check out this post, where I show you how to get up and running.

15 Things Zsh Can Do out of the Box

Zsh shares a lot of handy features with Bash. None of the following are unique to Zsh, but they’re good to know nonetheless. I encourage you to start using the command line to perform operations such as those listed below. It might seem like more work than using a GUI at first, but once you get the hang of things, you’ll never look back.

  • Entering cd from anywhere on the file system will bring you straight back to your home directory.
  • Entering !! will bring up the last command. This is handy if a command fails because it needs admin rights. In this case you can type sudo !!.
  • You can use && to chain multiple commands. For example, mkdir project && cd project && npm init -y.
  • Conditional execution is possible using ||. For example, git commit -m "whatever..." || echo "Commit failed".
  • Using a -p switch with the mkdir command will allow you to create parent directories as needed. Using brace expansion reduces repetition. For example, mkdir -p articles/jim/sitepoint/article{1,2,3}.
  • Set environment variables on a per-command basis like so: NODE_DEBUG=myapp node index.js. Or, on a per-session basis like so: export NODE_DEBUG=myapp. You can check it was set by typing echo $<variable-name>.
  • Pipe the output of one command into a second command. For example, cat /var/log/kern.log | less to make a long log readable, or history | grep ssh to search for any history entries containing “ssh”.
  • You can open files in your editor from the terminal. For example, nano ~/.zshrc (nano), subl ~/.zshrc (Sublime Text), code ~/.zshrc (VS Code). If the file doesn’t exist, it will be created when you press Save in the editor.
  • Navigation is an important skill to master. Don’t just rely on your arrow keys. For example, Ctrl + a will take you to the beginning of a line.
  • Whereas Ctrl + e will take you to the end.
  • You can use Ctrl + w to delete one word (backw­ards).
  • Ctrl + u will remove everything from the cursor to the beginning of the line.
  • Ctrl + k will clear everything from the cursor to the end of the line. These last three can be undone with Ctrl + y.
  • You can copy text with Ctrl + Shift + c. This is much more elegant than right clicking and selecting Copy.
  • Conversely, you can paste copied text with Ctrl + shift + v.

Try to commit those key combos to memory. You’ll be surprised at how often they come in handy.

15 Custom Aliases to Boost Your Productivity

Aliases are terminal shortcuts for regular commands. You can add them to your ~/.zshrc file, then reload your terminal (using source ~/.zshrc) for them to take effect.

The syntax for declaring a (simple) alias is as follows:

alias [alias-name]='[command]'

Aliases are great for often-used commands, long commands, or commands with a hard-to-remember syntax. Here are some of the ones I use on a regular basis:

  • A myip alias, which prints your current public IP address to the terminal: alias myip='curl http://ipecho.net/plain; echo'.
  • A distro alias to output information about your Linux distribution: alias distro='cat /etc/*-release'.
  • A reload alias, as I can never seem to remember how to reload my terminal: alias reload='source ~/.zshrc'.
  • An undo-git-reset alias: alias undo-git-reset-head="git reset 'HEAD@{1}'". This reverts the effects of running git reset HEAD~.
  • An alias to update package lists: alias sapu='sudo apt-get update'.
  • An alias to rerun the previous command with sudo: alias ffs='sudo !!'.
  • Because I’m lazy, I have aliased y to the yarn command: alias y='yarn'. This means I can clone a repo, then just type y to pull in all the dependencies. I learned this one from Scott Tolinski on Syntax.
  • Not one of the ones I use, but this alias blows away the node_modules folder and removes the package-lock.json file, before reinstalling a project’s dependencies: alias yolo='rm -rf node_modules/ && rm package-lock.json && yarn install'. As you probably know, yolo stands for You Only Live Once.
  • An alias to open my .zshrc file for editing: alias zshconfig='subl $HOME/.zshrc'.
  • An alias to update the list of Ruby versions rbenv can install: alias update-available-rubies='cd ~/.rbenv/plugins/ruby-build && git pull'
  • An alias to kick off a server in your current directory (no npm packages required): alias server='python -m SimpleHTTPServer 8000'.
  • You can also create an alias to open documentation in your browser: alias npmhelp='firefox https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/npm'.
  • A global alias to pipe a command’s output to less: alias -g L='| less'. You can use it like so: cat production.log L.
  • A global alias to pipe a command’s output to grep: alias -g G='| grep'. You can use it like so: history G ssh.
  • You can also use functions to create aliases. The following (taken from here) creates an alias that adds, commits, and pushes code to GitHub:
    bash
    function acp() {
    git add .
    git commit -m "$1"
    git push
    }

There are lots of places to find more ideas for aliases online. For example, this Hacker News discussion, or this post on command line productivity with Zsh.

15 Cool Things You Can Do with (Oh My) Zsh

Oh My Zsh is a community-driven framework for managing your Zsh configuration and comes bundled with thousands of helpful functions, helpers, plugins and themes. If you’re going to make the Z shell your daily driver, you should really install Oh My Zsh.

Here are fifteen useful things Oh My Zsh can do for you:

  • The take command will create a new directory and change into it. take my-project replaces mkdir my-project && cd my-project.
  • zsh_stats will give you a list of the top 20 commands and how many times they’ve been run.
  • Oh My Zsh simplifies navigating your file system. For example, .. is an alias for cd ...
  • In the same way, ... moves you up two directories, .... moves you up three, and ..... moves you up four.
  • You can omit the cd when navigating. Typing /, for example, will take you straight to your filesystem root.
  • Partial matching is also supported. For example, typing /h/j/De and pressing TAB, then Return, takes me to /home/jim/Desktop/.
  • rd is an alias for rmdir and md is an alias for mkdir -p.
  • You can type d to list the last used directories from a terminal session.
  • You can then navigate to any of these using cd -n, where n is the directory number.
  • Tab completion is another great feature. For example, typing ls - and pressing TAB will list all of the command’s options, along with a helpful description of what they do. This also works for cap, rake, ssh, and kill.
  • Typing alias lists all of your current aliases.
  • With globbing (a Zsh feature), you can list files with a particular extension. For example, ls *.html will list all HTML files in the current directory. To include subdirectories, change to: ls **/*.html.
  • Glob qualifiers allow you to select types of files by using flags. For example, ls -l **/*(.x) will find all executable files in the current directory and all sub-directories.
  • You can search for files by date modified. For example, ls *(m-7) will list all files modified within the last week.
  • You can search for files by size. For example, ls *(Lm+1) will find all files with a size larger than 1MB.

Using Plugins for Fun and Profit

Oh My Zsh ships with a lot of plugins. You should look through these and invest some time learning those that will help your workflow.

Here are three plugins I regularly use, that provide a ton of handy shortcuts and aliases.

10 Nifty Git Aliases

The git plugin provides many aliases and several useful functions. Why not go through these and attempt to memorize your top ten? Here are the ones I use most often.

  1. g is a handy alias for git. This means you can type things like g clone <whatever> instead of git clone <whatever>. Might only be two keystrokes, but they soon add up.
  2. gaa is an alias for git add all. I use this one all the time.
  3. gb is an alias for git branch, which will list all of the branches in the current repo and show you which one you’re on.
  4. gcb is an alias for git checkout -b, the command that allows you to create a new branch.
  5. gcm is an alias for git checkout master. This returns you to the master branch.
  6. gdca is an alias for git diff --cached. This allows you to diff any files you’ve staged for commit.
  7. gf is an alias for git fetch.
  8. gm is an alias for git merge.
  9. gp is an alias for git push. To sync a fork of a repo, you could do: gf upstream, gm upstream/master, followed by gp.
  10. glog is an alias for git log --oneline --decorate --graph, which will give you a pretty git branch graph.

10 Handy npm Aliases

The npm plugin provides completion as well a bunch of useful aliases.

  • npmg is an alias for npm install --global, which you can use to install dependencies globally on your system. For example, npmg nodemon.
  • npmS is an alias for npm install --save, which you use to install dependencies and add them to the dependencies section of your package.json. Note that, as of npm 5.0.0, this is the default when running npm i <package>.
  • npmD is an alias for npm install --save-dev, which you use to install dependencies and add them to the devDependencies section of your package.json.
  • npmO is an alias for npm outdated, which will check the registry to see if any (or, specific) installed packages are currently outdated.
  • npmL is an alias for npm list, which will list installed packages.
  • npmL0 is an alias for npm list --depth=0, which lists top-level packages. This is especially useful for seeing which modules are installed globally without flooding your terminal with a huge dependency tree: npmL0 -g.
  • npmst is an alias for npm run start, an npm script often used to start an application.
  • npmt is an alias for npm run test, which, as you might guess, is used to run your tests.
  • npmR is an alias for npm run. On its own, this command will list all of a project’s available npm scripts, along with a description of what they do. Used in conjunction with a script name, it will run that script, For example, npmR build.
  • npmI is an alias for npm init. This will ask you a bunch of questions, then create a package.json based on your answers. Use the -y flag to automate the process. For example, npmI -y.

10 Time-saving Rails/Rake Aliases

This plugin adds completion for the Ruby on Rails framework and the Rake program, as well as some aliases for logs and environment variables.

  • rc is an alias for rails console, which allows you to interact with your Rails app from the CLI.
  • rdc is an alias for rake db:create, which (unless RAILS_ENV is set) creates the development and test databases for your app.
  • rdd is an alias for rake db:drop, which drops your app’s development and test databases.
  • rdm is an alias for rake db:migrate, which will run any pending database migrations.
  • rds is an alias for rake db:seed, which runs the db/seeds.rb file to populate your development database with data.
  • rgen is an alias for rails generate, which will generate boilerplate code. For example: rgen scaffold item name:string description:text.
  • rgm is an alias for rails generate migration, which will generate a database migration. For example: rgm add_description_to_products description:string.
  • rr is an alias for rake routes, which list all of an app’s defined routes.
  • rrg is an alias for rake routes | grep, which will allow you to list and filter the defined routes. For example, rrg user.
  • rs is an alias for rails server, which launches the Rails default web server.

Additional Resources

The main job of the plugins listed above is to provide aliases to often-used commands. Please be aware that there are lots more plugins out there that augment your shell with additional functionality.

Here are four of my favorites:

  • sudo allows you to easily prefix your current or previous commands with sudo by pressing ESC twice.
  • autosuggestions suggests commands as you type based on history and completions. If the suggestion is the one you’re looking for, press the key to accept it. A real time saver!
  • command-not-found: if a command isn’t recognized in the $PATH, this will use Ubuntu’s command-not-found package to find it or suggest spelling mistakes.
  • z is a handy plugin that builds a list of your most frequent and recent folders (it calls these “frecent”) and allows you to jump to them with one command.

And don’t forget, if you spend a lot of time in the terminal, it’s worth investing some effort in making it visually appealing. Luckily, Oh My Zsh ships with a whole bunch of themes for you to choose from. My pick of the bunch is Agnoster.

You can find out more about themes in my article .

Conclusion

So there we have it: 75 Zsh commands, plugins, aliases and tools. I hope you’ve learned a trick or two along the way, and I encourage you to get out of your GUIs and into the terminal. It’s easier than it looks and a great way to boost your productivity.

If I’ve missed your favorite plugin, or time-saving alias/command, let me know on Twitter.

Want to get even more out of your toolkit? Check out Visual Studio Code: End-to-End Editing and Debugging Tools for Web Developers from Wiley.

FAQs

What are zsh aliases? ›

Defining Aliases

Aliases in zsh share the common alias builtin command from other shells. Aliases are handy for saving time when typing commands. If they are not "global aliases" then they only work at the beginning of a command prompt (more below). Typical aliases are used for commands such as: alias g=git.

How do I add alias in zsh terminal? ›

To set up a simple alias, edit the ~/. zshrc file using your text editor and add an alias at the bottom. It is good to keep all your aliases in a single section of the file to avoid confusion and ease of edit. alias ginit="git init ."

How do I fix zsh command not found on Mac? ›

4. How do I fix macOS's "Zsh: command not found brew" error?
  1. Open the . zshrc file with the command nano /. zshrc.
  2. Add the following code to the file: export PATH="$PATH:/opt/homebrew/bin/"
  3. Save the file using Control + Enter and X.
  4. To apply changes, type source /. zshrc in the command line.
26 Oct 2022

Where should I put my aliases zsh? ›

zshrc file free of clutter. Place the aliases in their own file, ie: . zsh_aliases. You can also create a file for other things, like app shortcuts.

What is zsh used for? ›

The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh.

Why does Apple use zsh? ›

One of the primary reasons why Apple switched to zsh is because it is closer to the functionality of the standard bash. If you are familiar with the standard bash, you will be glad to know that there is an Apple ZSH prompts which looks similar to the one you will find in Microsoft Outlook.

How do I enable plugins on zsh? ›

You add a folder with the custom plugin in your plugin directory and you are good to go. Oh-My-ZSH will by default be able to source your plugins from there as well, but it's really up to you. You can add your custom plugins to the general plugin directory or your custom plugin directory. It's only personal preference.

How do I create an alias on Mac zsh? ›

In preferences, select general and then profiles. In the general section of profile, select command and type /bin/zsh in the text box. /bin/zsh is usually where zsh is installed on your computer. Why aliasing?

Where are zsh plugins installed? ›

At installation, it resides at the base of your home directory, but modern Linux convention, as defined by the Free Desktop specification, is to place directories that extend the functionality of applications in the ~/. local/share directory.

What does zsh mean on Mac? ›

The Z shell (also known as zsh ) is a Unix shell that is built on top of bash (the default shell for macOS) with additional features. It's recommended to use zsh over bash . It's also highly recommended to install a framework with zsh as it makes dealing with configuration, plugins and themes a lot nicer.

Why does my Mac terminal says zsh? ›

Every new Mac uses the Z shell (Zsh) by default, but you can quickly and easily switch the default shell back to Bash. There are several reasons you might want to do this. For example, you may need to be using the bash shell to execute bash scripts on a Mac. Tip: Not sure what shell your Mac is using?

Does Apple use zsh? ›

The default shell is zsh. You can change the shell that new Terminal windows and tabs open with.

Why should I use zsh instead of bash? ›

Zsh is built on top of bash thus it has additional features. Zsh is the default shell for macOS and Kali Linux. Zsh provides the user with more flexibility by providing various features such as plug-in support, better customization, theme support, spelling correction, etc.

Is zsh better than bash? ›

Zsh is more interactive and customizable than Bash. Zsh has floating-point support that Bash does not possess. Hash data structures are supported in Zsh that are not present in Bash. The invocation features in Bash is better when comparing with Zsh.

How do I permanently store aliases across sessions? ›

Steps to create a permanent Bash alias:
  1. Edit the ~/.bash_aliases or ~/.bashrc (recommended) file using a text editor: vi ~/.bash_aliases. # or # ...
  2. Append your bash alias.
  3. For example append: alias update='sudo yum update'
  4. Save and close the file.
  5. Activate alias by typing the following source command: source ~/.bash_aliases.
24 Mar 2022

Is zsh safe? ›

Zsh itself is harmless. It is 'just another shell', like bash, ksh,... However, in many corporations, the security policy is to limit as much as possible the attack surface, i.e. don't install anything unless it's required. Even though zsh is harmless, its code base could contain bugs.

What's so great about zsh? ›

Zsh is more configurable and has more options to build fancy user prompts. Parameter expansion in Zsh is more powerful than in Bash. Zsh has plenty of plugins, themes and frameworks avilable, like the popular Oh My Zsh. It helps you get a fancy looking terminal with useful features.

What's the difference between zsh and bash? ›

Bash sets the prompt from PS1 which contains backslash escapes like \a whereas zsh contains the percent escapes like %d. The functionality of bash PROMT_COMMAND is available in zsh via precmd. Zsh also offers ways to do fancy customizations.

How do you show hidden files on Mac? ›

Showing hidden files via Mac Finder

Press the “Command” + “Shift” + “.” (period) keys at the same time. The hidden files will show up as translucent in the folder. If you want to obscure the files again, press the same “Command” + “Shift” + “.” (period) combination.

Is zsh a language? ›

Zsh is a powerful shell that operates as both an interactive shell and as a scripting language interpreter. While being compatible with the POSIX sh (not by default, only if issuing emulate sh ), it offers advantages such as improved tab completion and globbing.

Is zsh preinstalled on Mac? ›

OS X comes preloaded with zsh.

You can check its version by writing zsh --version in a terminal window. In case this zsh version is ok for you, you're done now! If you want the latest and greatest, use Homebrew: Proceed with the following steps to install a recent version.

How do I update my zsh plugins? ›

Add autoupdate to the plugins=() list in your ~/. zshrc file and you're done. The updates will be executed automatically as soon as the oh-my-zsh updater is started. Note that this will autoupdate both plugins and also themes found in the $ZSH_CUSTOM folder.

Is zsh good for beginners? ›

Easy Customization

The customization options are what really sets Zsh apart from the other shell programs for beginners. When you have the shell configured to your liking, it is easy to navigate. And when you set it up with helpful plugins, you can add to your productivity.

Can I use bash commands in zsh? ›

Nearly all syntax from bash scripts will 'just work' in zsh as well. There are just a few important differences you have to be aware of. The most significant difference, which will affect most scripts is how zsh treats word splitting in variable substitutions.

What is alias command in Mac? ›

Aliases allow a string to be substituted for a word. An alias can be used as the first word of any simple command.

What is an alias on a Mac? ›

To make it easier to find a file, folder, app, or disk, you can create an alias for it and put the alias in an easy-to-find location. When you open an alias, the original item opens.

How do I permanently install alias in Mac Terminal? ›

Here's how to do it:
  1. 1) Navigate to your home directory: cd ~
  2. 2) Open up .bash_profile using vi: vi .bash_profile.
  3. 3) Add an alias (press i ): alias c="clear"
  4. 4) Save the file (press Escape , type :wq , and hit Enter )
  5. 5) Restart Terminal.
27 Jan 2012

What do oh my zsh plugins do? ›

Oh My Zsh comes bundled with plugins, which allow you to take advantage of functionality of many sorts to your shell just by enabling them. They are each documented in the README file in their respective plugins/ folder. NOTE: elements in zsh arrays are separated by whitespace (spaces, tabs, newlines...).

How do I know if zsh is installed on my Mac? ›

Most versions of macOS ship with zsh pre-installed. You can check if this is the case and if so, which version you are running using the command: zsh --version . If the version is 4.3. 9 or higher, you should be good to go (we'll need at least this version to install Oh My Zsh later on).

What editor does zsh use? ›

What's the Zsh Line Editor? The Zsh Line Editor (ZLE) is simply your command prompt. It's your interface to the shell interpreter, allowing you to write and edit your mind-blowing commands. It also allows you to use keystrokes to execute ZLE commands, more commonly called widgets.

Should I have firewall on or off on my Mac? ›

Chances are that your computer is behind the firewall that's part of your router, so having macOS's firewall turned off makes it easier to set up connections with other Apple devices. But if you use a laptop and hop onto untrusted networks frequently, you should enable the firewall.

Why do I need Rosetta on my Mac? ›

Rosetta 2 enables a Mac with Apple silicon to use apps built for a Mac with an Intel processor.

Is it safe to run Rosetta on Mac? ›

Rosetta is an Apple framework that allows Apps not written for the new M1 CPUs to be translated to code the M1 understands and can run. Its made by Apple, and should not affect your Mac in any way. Its perfectly safe.

How do I get out of zsh on Mac? ›

Run "chsh -s /bin/bash" in a Terminal Window to switch your shell from Zsh to Bash, then restart your Terminal.

How do I know if my Mac is using zsh or bash? ›

Alternative. Update your Terminal preferences to open the shell with the command /bin/bash , as shown in the screenshot above. Quit and restart Terminal. You should see “hello from bash”, but if you run echo $SHELL , you will see /bin/zsh .

What is a zsh prompt? ›

The default prompt for zsh is: phoenix% echo $PROMPT %m%# The %m stands for the short form of the current hostname, and the %# stands for a % or a # , depending on whether the shell is running as root or not. zsh supports many other control sequences in the PROMPT variable.

What is zsh in IOS? ›

The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting.

Can Windows run zsh? ›

There are 2 options to install zsh on Windows. We can either install zsh on WSL or replace the git bash shell with zsh. See Git Bash vs WSL.

Is zsh faster than bash? ›

output and subshell

The ksh and zsh seems about seven times faster than bash .

Is zsh vulnerable? ›

ZSH » ZSH : Security Vulnerabilities

Avail. In zsh before 5.8. 1, an attacker can achieve code execution if they control a command output inside the prompt, as demonstrated by a %F argument. This occurs because of recursive PROMPT_SUBST expansion.

Which shell is best for scripting? ›

Tenex Shell

This shell is recommended for programmers based on its C-like syntax, as those developers can use scripting features without any experience in sh or Bash.

Which Linux shell is best? ›

There are many open-source shells available for Linux, but in this article, we only include the top five shells recommended by the Linux experts.
  1. Bash (Bourne-Again Shell) ...
  2. Zsh (Z-Shell) ...
  3. Ksh (Korn Shell) ...
  4. Tcsh (Tenex C Shell) ...
  5. Fish (Friendly Interactive Shell)

What replaced bash? ›

And it's attracted some big users including Kali-Linux the standard distribution for security testing and Apple, who have both replaced Bash with ZSH as the default shell in their tech stack in recent years.

Where are aliases saved? ›

Aliases allow you to define new commands by substituting a string for the first token of a simple command. They are typically placed in the ~/. bashrc (bash) or ~/. tcshrc (tcsh) startup files so that they are available to interactive subshells.

Is alias command temporary? ›

Aliases can either be temporary or permanent. A temporary alias is one which will be active only as long as your current shell is active. When you log out and come back later, these aliases are no longer in effect. A permanent alias is one which will remain in effect across different sessions.

How do I list all aliases? ›

2. Using the compgen Command
  1. 2.1. List Commands. We use the compgen -c command to list all available commands: $ compgen -c alert egrep fgrep grep l la ll ls ... Copy. ...
  2. 2.2. List Aliases. We use the compgen -a command to list all the available aliases: $ compgen -a alert egrep fgrep grep l la ll ls ... Copy.
18 Apr 2022

What does shell aliases mean? ›

Shell aliases are shortcut names for commands. Each alias consists of one word (or even one letter) that you can use instead of a longer command line. For example, you may find yourself using the command ls -F a lot. You can easily make a shortcut for that command: lf, for example.

Why does my Mac use Zsh instead of Bash? ›

Apple will set the Zsh as the default for any new user account that is created in macOS Catalina or later. If you upgraded your Mac from an earlier version of the macOS, then those existing user accounts are still using the Bash shell.

What are shell aliases? ›

A shell alias is a shortcut to reference a command. It can be used to avoid typing long commands or as a means to correct incorrect input. For common patterns it can reduce keystrokes and improve efficiency. A simple example is setting default options on commands to avoid having to type them each time a command is run.

How do you check aliases in Zsh? ›

There are a lot of ways to see it: Using the alias <command> on terminal. Using the keyboard shortcut combination ctrl+x a (not ctrl+x+a ) to expand it. Using the globalias plugin.

Why would you use an alias? ›

Why Use an Alias? An alias can be any name used in place of a birth name. While there may be legitimate reasons for using another name, this is often used by criminals, as they don't wish to have their true identity revealed, or they have a short nickname they go by instead of their birth name.

What is a ghost alias? ›

A variable alias (also called a ghost) is a copy of a stock, flow, or converter that lets you use the original variable elsewhere in your model. The variable alias isn't a new, separate variable. Instead, it's a shortcut to the original variable.

What is an alias where and how it is used? ›

ali·​as ˈā-lē-əs. ˈāl-yəs. : otherwise called : otherwise known as. used to indicate an additional name that a person (such as a criminal) sometimes uses. John Smith alias Richard Jones was identified as the suspect.

Which is best bash or zsh? ›

Zsh is built on top of bash thus it has additional features. Zsh is the default shell for macOS and Kali Linux. Zsh provides the user with more flexibility by providing various features such as plug-in support, better customization, theme support, spelling correction, etc.

Which is faster bash or zsh? ›

output and subshell

The ksh and zsh seems about seven times faster than bash .

What is an alias example? ›

noun, plural a·li·as·es. a false name used to conceal one's identity; an assumed name: The police files indicate that “Smith” is an alias for Simpson. at another time; in another place; in other circumstances; otherwise. “Simpson alias Smith” means that Simpson in other circumstances has called himself Smith.

How do I find my aliases on Mac? ›

How to Quickly Access & Show Original from an Alias in Mac OS
  1. Locate and select the alias in Mac OS that you want to find the original item for.
  2. Go to the “File” menu with the alias selected, then choose “Show Original”
  3. The original item will be instantly revealed in the file system.
1 Jun 2017

Where are ZSH plugins installed? ›

At installation, it resides at the base of your home directory, but modern Linux convention, as defined by the Free Desktop specification, is to place directories that extend the functionality of applications in the ~/. local/share directory.

Which command displays all existing aliases? ›

alias : Invokes the alias command. [option] : Allows the command to list all current aliases.

Where are the aliases stored? ›

Aliases allow you to define new commands by substituting a string for the first token of a simple command. They are typically placed in the ~/. bashrc (bash) or ~/. tcshrc (tcsh) startup files so that they are available to interactive subshells.

Top Articles
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated: 10/25/2022

Views: 6168

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.