- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |