Skip to content

Sushkyn/one-liner-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Linux

while :; do printf "> "; read c; $c > /dev/pts/1; done # Constantly reads input and executes command, redirecting output to the terminal.
while :; do sleep 1; lsblk -Jo RM,VENDOR | jq -r '.blockdevices[] | select(.rm == true) | select(.vendor != null) | .vendor' | { read -r line || shutdown now; } done # Simple USB kill switch; in this case, it shuts down the system.

Windows

macOS

About

a collection of handy commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published