Tools
This page talks about Git, Unix, IntelliJ.
Git:
Use "&&" to Link Two or More Commands:
Use “&&” to link two or more commands when you want the previous command to be succeeded before the next command.
ls /path/to/file && cp /path/to/file /backup
Use “grep” With -A and -B Options
using grep with the -A and -B options provides additional context within a single command, and it displays lines after and before the searched text, which enhances visibility into related content.
Touch: Use touch to create new file.
File: Use cat or less to read while Vi to edit the file.
Head:
Tail:
Cut: Cut to cut by a delicate and print specific column only.
sort:
SED:
AWK: Awk Finds, replaces, or deletes patterns in a file.
Diff:
Tee: Prints command outputs in Terminal and a file
FIND:
Sudo: runs a command as super user.
Chmod:
top: Displays running processes and the system’s resource usage
htop: Works like top but with an interactive user interface
Ps: Creates a snapshot of all running processes
Uname: Prints information about your machine’s kernel, name, and hardware
Ping: Check network connectivity.
Wget is to download files from Internet.
Curl: Transmits data between servers using URLs
du:
df:
Use “rsync” for Backups:
"rsync" is a useful command for regular backups as it saves time by transferring only the differences between the source and destination.