Setting local variables: Difference between revisions
Jump to navigation
Jump to search
Modify
m (<source> to <pre> to fix code blocks) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
=== Adding custom directories to the system PATH === | === Adding custom directories to the system PATH === | ||
<pre> | |||
PATH=$PATH:$HOME/bin:$HOME/bin/bin | PATH=$PATH:$HOME/bin:$HOME/bin/bin | ||
export PATH | export PATH | ||
</pre> | |||
=== Increase number of commands remembered in the history === | === Increase number of commands remembered in the history === | ||
<pre> | |||
# Maximum numbers of lines that can be written to the file | # Maximum numbers of lines that can be written to the file | ||
export HISTFILESIZE=100000 | export HISTFILESIZE=100000 | ||
Line 17: | Line 20: | ||
# Change this to a reasonable number of lines to save | # Change this to a reasonable number of lines to save | ||
export HISTSIZE=100000 | export HISTSIZE=100000 | ||
</pre> | |||
== See also == | == See also == | ||
* [[ | * [[Anunna | Anunna]] | ||
* [[Lx6_and_Lx7_compute_nodes | Lx6 and Lx7 compute nodes]] | * [[Lx6_and_Lx7_compute_nodes | Lx6 and Lx7 compute nodes]] | ||
* [[Create_shortcut_log-in_command | Create a shortcut for the ssh log-in command]] | * [[Create_shortcut_log-in_command | Create a shortcut for the ssh log-in command]] |
Latest revision as of 09:42, 22 June 2023
Environment Variables
Modify .bashrc
and .bash_profile
Adding custom directories to the system PATH
PATH=$PATH:$HOME/bin:$HOME/bin/bin export PATH
Increase number of commands remembered in the history
# Maximum numbers of lines that can be written to the file export HISTFILESIZE=100000 # Change this to a reasonable number of lines to save export HISTSIZE=100000
See also
- Anunna
- Lx6 and Lx7 compute nodes
- Create a shortcut for the ssh log-in command
- Installing R packages locally