- 追加された行はこの色です。
- 削除された行はこの色です。
*Linux tips [#ie40dc7a]
** Useful link(s) [#l5556494]
[[37 Important Linux Commands You Should Know>https://www.howtogeek.com/412055/37-important-linux-commands-you-should-know/]]
**Environmental setting [#k4e29c9d]
Create ".bash_profile" in the home directory and write the following, if not exist.
vi ~/.bash_profile
In .bash_profile:
Create and edit ".bash_profile" in the home directory by using your favorite editor, if not exist. For instance:
$ vi ~/.bash_profile
and add the following lines to ~/.bash_profile:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
Create ".bashrc" in the homedirectory to set prompt, add command line path, and so on.
Create ".bashrc" in the home directory to set the prompt, add command-line path, and so on (optional).
Below is an example of ".bashrc"
if [ "$PS1" ]; then
# enable color support of ls and also add handly aliases
#eval `dircolors`
#alias ls='ls -F --color=auto'
alias ls='ls -FG'
alias ll='ls -l'
alias la='ls -A'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
# set a fancy prompt
PS1='\u@\h:\w\$ '
fi
To add a command search path, add the following (for instance) to ~/.bashrc
export PATH=${PATH}:${HOME}/qe-6.1.0/bin:${HOME}/qe-6.1.0/PW/tools
and type
source ~/.bashrc
export PATH=${PATH}:${HOME}/qe-6.2.1/bin:${HOME}/qe-6.2.1/PW/tools
(change path to and directory name for your QE program ("qe-6.2.1" for instance) as appropriate) and type
$ source ~/.bashrc
to make the change.
**Information of CPU/memory [#qdfd770f]
vmstat
cat /proc/cpuinfo
cat /proc/meminfo