Question

I read this command somewhere on Twitter and executed it in my Terminal and it seems it removed the cd package completely from the OS.

alias cd="say -v cello"
  1. What does this command do? Can you breakup the explanation of this command?

  2. How do I install cd back to Ubuntu?

Was it helpful?

Solution

  1. That command aliases say -v cello to cd, which means now cd is a shortcut for say -v cello
  2. cd cannot be installed/uninstalled separately, it's part of the shell, not a separate program. Your problem is that you're shadowing the original cd with your alias cd. If you remove that alias (unalias), it should be back.

OTHER TIPS

You can unalias cd to get it working again. Here's the link: http://manpages.ubuntu.com/manpages/natty/man1/unalias.1posix.html

The required command will be: unalias cd

From what I gather, say is a text-to-speech convertor. Check it out here: https://help.ubuntu.com/community/TextToSpeech

1. What does this command do? Can you breakup the explanation of this command?

It creates an alias, remapping cd to mean say -v cello.

A useful example you could use this would be if you always wanted to recursively delete when using rm:

alias rm="rm -rf"

Or if you always want to say "yes" when using yum:

alias yum="yum -y"

2. How do I install cd back to Ubuntu?

Run this command:

unalias cd
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top