CLI

From Fiamma
Revision as of 14:05, 29 July 2017 by Pchr8 (talk | contribs)
Jump to navigationJump to search

Various bash/zsh/CLI tips.

Commands

Execute any line // echo any line from a textfile.

Source: https://www.reddit.com/r/archlinux/comments/6k7go4/how_could_i_excecute_specific_commands_from_a/

sed -n 1p file.txt | bash

Turn screen off

https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling

i3lock -c 000000 & xset dpms force off

Programs

writepid /etc/openvpn/mv.pid

for OpenVPN and i3bar

Resources

See also Category:CLI