Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 435 Bytes

linux-commands.md

File metadata and controls

27 lines (19 loc) · 435 Bytes

Linux Commands

Batch Rename

# Rename all *.txt to *.text
for f in *.txt; do 
    mv -- "$f" "${f%.txt}.text"
done

tmux

  • tmux a Attach to tmux session
  • Ctrl-b <nr> Switch to tab
  • Ctrl-b c Create new tab (window)
  • Ctrl-b & Kill tab (window)
  • Ctrl-b d Close tmux
  • tmux kill-session -t <snr> Close tmux session

Syslog

sudo tail -f /var/log/syslog follow syslog

Disk usage

df -h