Difference between revisions of "CLI"

From Fiamma
Jump to navigationJump to search
Line 6: Line 6:
 
sed -n 1p file.txt | bash
 
sed -n 1p file.txt | bash
 
</pre>  
 
</pre>  
 +
 +
=== Turn screen off ===
 +
https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling
 +
<pre>
 +
i3lock -c 000000 & xset dpms force off
 +
</pre>
  
 
== Programs ==
 
== Programs ==

Revision as of 10:14, 2 July 2017

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

Resources

See also Category:CLI