Linux command
ps --no-headers -eo comm,state | grep I | wc -l
python -c "print 45+95+2"
top / ctrl + z(stop signal)
fg(foreground)
bg(background)
lsblk /dev/sda
pidof htop
kill -s SIGSTOP 6414
ps -eo comm,state | grep " T"
gdb -q hello
break main
run
info proc
# 오류 표시 안되도록
find / -name "*top*" 2>/dev/null
stdinput 0
stdouput 1
stderr 2
locate htop
user_name$ #ls -al 실행 안됨(주석으로 간주) or Ctrl + C
mkdir morphys && cd morphys
vi /etc/profile
# vi에서 라인번호 표시하기
:se nu
cd /etc/profile.d/
/etc/profile.d/*.sh, *.local
~/.bash_profile
~/.bashrc --> /etc/bashrc
~/.bash_history
~/.bash_logout
vi .bashrc
echo $PATH
# 전체변수에서 찾기
env | grep king
# 지역변수에서 찾기
set | grep king
cat > ting
CTRL+D
PATH=$PATH:.
vi .bash_profile
PATH=$PATH:.
export PATH
vi .bashrc
PATH=$PATH:.
alias d='date'
alias h='history'
source .bash_profile = . .bash_profile
source = .
cat -n filename // line_number
cat -b filename // line_number without blank_line
tee -a filename // append
nl -w6 filename (default)
nl -w10 filename
nl -i10 -v10 filename