✏️
Cheatsheet
  • Cheatsheet
  • Development
    • Git
    • Java
  • Others
    • Bash Kung-fu
      • Screen
    • Certificates
    • Cron
    • Docker
    • Logs
  • Hacking-CTF
    • CTF
Powered by GitBook
On this page

Was this helpful?

  1. Others
  2. Bash Kung-fu

Screen

Screen commands

PreviousBash Kung-fuNextCertificates

Last updated 3 years ago

Was this helpful?

Commands

screen -d -m -S name_screen bash -c '/opt/bin/tools/xyz.sh |tee /var/log/tools/xyz.log'

Screen configuracion By Rob Fuller ()

.screenrc
defshell -bash
startup_message off
multiuser on
defscrollback 10000
logfile $HOME/.screen/logs/screenlog.%H.%n.%Y%m%d-%0c:%s.%t.log
logfile flush 5
logstamp on
deflog on
defmonitor on
caption always "%{= gk}%Kw%{= bW}%50> %n%f* %t %{-}%+Lw%< %= %{= rk} %H %l %{= gk} %0c:%s %{-}"
defutf8 on
activity "Activity in $t(%n)"
https://mobile.twitter.com/mubix/status/1317146837539762176