Skip to content

ToCode Solution: תרגול סביבת העבודה#155

Open
roigizmo wants to merge 1 commit intotocodeil:masterfrom
roigizmo:37_environment_lab
Open

ToCode Solution: תרגול סביבת העבודה#155
roigizmo wants to merge 1 commit intotocodeil:masterfrom
roigizmo:37_environment_lab

Conversation

@roigizmo
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Collaborator

@ynonp ynonp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing answers to the last question.

alias rm= "rm -i"
alias cp ="cp -i"

2. How can you "install" all defined aliases into the current shell? How can you add them permenantly to all shells?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After running the above alias commands, leaving the shell and re-entering (for example if you close the window and open a new one) all aliases defined will disappear.

In order to define permanent aliases you need to add the above alias lines to a startup file (also called rc file) named $HOME/.bashrc, specifically in your case it's /home/roi/.bashrc

@ynonp ynonp closed this Jun 17, 2017
@ynonp ynonp reopened this Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants