Last active
June 15, 2022 14:35
-
-
Save Forest-Dewberry/2f91ae160e214c14839c290c9cb38dc5 to your computer and use it in GitHub Desktop.
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
command | uses | |
---|---|---|
tee example.txt <<EOF | to paste in the contents of example.txt | |
mkdir -p path/to/directory | to create all the folders in a whole path | |
grep -n -m 1 -r 'searchText' fcinj.json | head -1 | to view the first hit of searchText | |
cat -n file.txt | to cat the file with numbers | |
cat -n file.txt | grep -C 10 -B 11 -A 11 '^\s*44\s' | view the 44th line and C for 10 before and after- A and B are after and before | |
mkdir /mnt/m; sudo mount -t drvfs M: /mnt/m | mount windows network drives in wsl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment