Skip to content

Instantly share code, notes, and snippets.

View anshdhinhgra47's full-sized avatar
🐵
Trying to stay anonymous

Ansh Dhingra anshdhinhgra47

🐵
Trying to stay anonymous
View GitHub Profile

Basic commands in Unix Systems

  • Finding the username of the currently logged in user: whoami
  • Finding all the users: who
  • Printing text: echo "your_text"
  • New line character: -n
  • Prinitng a banner in command-line: banner -w(width) 'your_text'
  • Displaying the current shell you are working in: echo $0
  • Viewing a text file: less file_name
  • Creating nested directories: mkdir -p dir_1/dir_2/....
  • Recursively copying directories: cp -R dir_to_be_copied new_dir_name
@anshdhinhgra47
anshdhinhgra47 / .tmux.conf
Created December 1, 2020 14:09 — forked from olexpono/.tmux.conf
tmux.conf 2017
# use 256 term for pretty colors
set -g default-terminal "xterm-256color"
set -g status-bg black
set -g status-fg green
set-window-option -g clock-mode-colour brightyellow
# increase scroll-back history
set -g history-limit 1000000
# use vim key bindings