Site Tools


cluster:getting_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
cluster:getting_started [2024/12/11 19:45] mcloughlincluster:getting_started [2026/08/24 18:44] (current) mcloughlin
Line 118: Line 118:
 Sometimes you use a certain command so many times that you just can't type it anymore. That's where the aliases come helpful. Just as the name suggests, you can tell the cluster to use some new (shorter) command in place of the one you use often. As an example, every time I log in to the cluster, I go to ''cd ~/files/pics/cute_pics/cats'' and I want to change it to just ''cats''. Sometimes you use a certain command so many times that you just can't type it anymore. That's where the aliases come helpful. Just as the name suggests, you can tell the cluster to use some new (shorter) command in place of the one you use often. As an example, every time I log in to the cluster, I go to ''cd ~/files/pics/cute_pics/cats'' and I want to change it to just ''cats''.
  
-First, I start editing my bash profile with any [[cluster:text_editing|text editor]]. For example <code>nano ~/.bash_profile</code>+First, I start editing my bash profile with any text editor. For example <code>nano ~/.bash_profile</code>
 Then I go to the space below ''# User specific environment and startup programs'' and type <code>alias cats="cd ~/files/pics/cute_pics/cats"</code> Then I go to the space below ''# User specific environment and startup programs'' and type <code>alias cats="cd ~/files/pics/cute_pics/cats"</code>
 I save the file and refresh the changes by typing <code>source ~/.bash_profile</code> I save the file and refresh the changes by typing <code>source ~/.bash_profile</code>
 Now typing <code>cats</code> sends me directly to the folder I need.  Now typing <code>cats</code> sends me directly to the folder I need. 
cluster/getting_started.1733946301.txt.gz · Last modified: (external edit)