Show Menu
Cheatography

scripts.zsh Cheat Sheet by

linux command line automation scripts

Command Line

gtfo <TO­OL>
Launch a program in a terminal without getting any output
histor­ystat
Display the command more often used in the shell
pass
Generate a password (default 20 charac­ters)
path
Print PATH
ssh-create
Create a new ssh key at
~/.ssh­/<n­ame>
with permission
700
pow-enc
Encode pwsh command to base64

File Operations

mkcd <di­rec­ory>
Create a directory and jump to it
mkcp <PA­TH>
Copy a file or a folder, and create the filepath if it doesn't exist
mkmv <PA­TH>
Move a file or a folder, and create the filepath if it doesn't exist
backup
Backup direct­ories from dir.csv to cloud directory
backall
Backup all files in cwd

Devices

mnt
Mount device with read/write permis­sions
umnt
Unmount every devices in a specific folder recurs­ively
mntmtp
Mount mtp filesystem
umntmtp
Umount mtp filesystem
 

Networking

dns
Get DNS IP
hip
Get localhost
extip
Get public IP
ports
List of open ports
ssh-create
Create a new ssh key at
~/.ssh­/<n­ame>
with permission
700
tiny <UR­L>
Use tinyurl to shorten the URL
scrape-url
Scrape a single webpage with all assets

Git

ssh-create
Create a new ssh key at
~/.ssh­/<n­ame>
with permission
700
gcl
Wrapper for git clone,
gcl
to clone from clipboard
gitnewrepo
Create new git repository
reposize <UR­L>
Calculate repo size

Youtube

ydl <vi­deo­_ur­l>
Download a video from Youtube in mp4 format
ydla <vi­deo­_ur­l>
Download audio from Youtube video
ydlp <pl­ayl­ist­_UR­L>
Download a playlist from Youtube
ydlap <pl­ayl­ist­_UR­L>
Download a playlist from Youtube only audio
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Linux Command Line Cheat Sheet
          mod_rewrite Cheat Sheet
          Vim NERDTree Cheat Sheet