首页 > 系统相关 >Linux shell command screen All In One

Linux shell command screen All In One

时间:2023-04-09 11:44:32浏览次数:45  
标签:shell screen dev session command ls xgqfrms cu

Linux shell command screen All In One

screen

# screen
$ screen --help
Use: screen [-opts] [cmd [args]]
 or: screen -r [host.tty]

Options:
-a            Force all capabilities into each window's termcap.
-A -[r|R]     Adapt all windows to the new display width & height.
-c file       Read configuration file instead of '.screenrc'.
-d (-r)       Detach the elsewhere running screen (and reattach here).
-dmS name     Start as daemon: Screen session in detached mode.
-D (-r)       Detach and logout remote (and reattach here).
-D -RR        Do whatever is needed to get a screen session.
-e xy         Change command characters.
-f            Flow control on, -fn = off, -fa = auto.
-h lines      Set the size of the scrollback history buffer.
-i            Interrupt output sooner when flow control is on.
-list         or -ls. Do nothing, just list our SockDir.
-L            Turn on output logging.
-m            ignore $STY variable, do create a new screen session.
-O            Choose optimal output rather than exact vt100 emulation.
-p window     Preselect the named window if it exists.
-q            Quiet startup. Exits with non-zero return code if unsuccessful.
-r            Reattach to a detached screen process.
-R            Reattach if possible, otherwise start a new session.
-s shell      Shell to execute rather than $SHELL.
-S sockname   Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
-t title      Set title. (window's name).
-T term       Use term as $TERM for windows, rather than "screen".
-U            Tell screen to use UTF-8 encoding.
-v            Print "Screen version 4.00.03 (FAU) 23-Oct-06".
-wipe         Do nothing, just clean up SockDir.
-x            Attach to a not detached screen. (Multi display mode).
-X            Execute <cmd> as a screen command in the specified session.


demos

usbserial

# /dev => devices ✅
$ cd /dev && ls | grep "cu."
$ cd /dev && ls | grep "tty."

# usbserial
$ screen /dev/cu.usbserial

$ cd /dev && ls | grep "cu."
cu.BLTH
cu.Bluetooth-Incoming-Port
$ /dev screen /dev/cu.B
cu.BLTH%                     cu.Bluetooth-Incoming-Port%

image

image

https://youtu.be/RkOtub1H944?t=167

usbmodem

# usb
$ lsusb

# macOS 查看真实的 tty.usbmodem
# /dev => devices ✅
$ cd /dev && ls | grep "usbmodem"

(

标签:shell,screen,dev,session,command,ls,xgqfrms,cu
From: https://www.cnblogs.com/xgqfrms/p/17299666.html

相关文章

  • Vulnhub之BoredHackerBlog: Social Network_Medium Socnet详细测试过程(拿到root shell
    BoredHackerBlog:SocialNetwork作者:jasonhuawen靶机信息名称:BoredHackerBlog:SocialNetwork地址:https://www.vulnhub.com/entry/boredhackerblog-social-network,454/识别目标主机IP地址Currentlyscanning:Finished!|ScreenView:UniqueHosts......
  • Shell函数
    定义[function]funName(){ action; [returnint;]}可以带functionfun()定义,也可以直接fun()定义,不加任何参数。参数返回,可以显示加return返回,如果不加,将以最后一条命令运行结果,作为返回值。return后跟的值(0-255)-----------demoFun(){echo"这是我的第一个shell函数!"}ech......
  • Shell流程控制
    和java,php等语言不一样,sh的流程控制不可为空。1.ififthenfi-------------实例:if[$(ps-ef|grep-c"ssh")-gt1];thenechotruefi-------------ifthenelsefiifthenelifthenelsefiifelse的[]判断语句中大于使用-gt,如果使用(())作为判断语句,大于使用>2.forforvarin......
  • Xshell7免费版安装教程
    一、背景最近我正在寻找一款可靠的远程连接管理软件,以便能够更方便地管理我的计算机。然而,我花了很长时间在网上搜索,但一直没有找到适合我的软件。最终,我在不断地尝试和搜索中,发现了Xshell7这个软件,于是开始了我的远程连接管理之旅。在寻找远程连接管理软件的过程中,我一直遇到了......
  • ctfshow-web4(Nginx日志写shell)
    这是一道有关Nginx日志文件写入shell的题目。  一、基础知识/etc/nginx/nginx.conf:该文件是Ngnix的配置的文件,该文件保存着能够影响服务器运行的配置信息。有时会泄露敏感信息。该文件支持php解析。/var/log/nginx/access.log:该文件是Ngnix的访问日志文件,Ngnix会把每个......
  • adb shell dumpsys
    其实,adbshelldumpsys命令是用于打印出当前系统信息(更切确的说是dumpsys命令,因为adbshell只是为了进入手机或模拟器的shell内核,使其能够执行dumpsys命令),可以在命令后面加指定的servicename(比如activity,location),如果不加则默认打印出设备中所有service的信息.在adbs......
  • Shell常见命令
    1.echoecho"Itisatest"echoItisatest//双引号完全可以省略echo"\"Itisatest\""//"Itisatest"echo"$nameItisatest"echo-e"ok,\n"//加了-e开启转义,\n才会换行echo"Itisatest"&g......
  • Shell基本运算符
    Shell和其他编程语言一样,支持多种运算符,包括:(1)算数运算符(2)关系运算符(3)布尔运算符(4)逻辑运算符(5)字符串运算符(6)文件测试运算符1.算数运算符原生bash不支持简单的数学运算,但是可以通过其他命令来实现,例如awk和exprexpr是一款表达式计算工具,使用它能完成表达式的求值操作。val=`expr......
  • Shell变量
    简洁Linux的shell有很多,常见的有:(1)BourneShell(/usr/bin/sh或/bin/sh)(2)BourneAgainShell(/bin/sh)(3)CShell(/usr/bin/csh)(4)KShell(/usr/bin/ksh)(5)ShellforRoot(/sbin/sh)....本教程使用Bash,也就是BourneAgainShell,由于易用和免费,Bash在日常工作中被广泛使用。同......
  • xshell 快捷键功能
    一、打开/关闭,会话(选项卡)标签页 (参考):快捷键:Ctrl+Shift+T1.打开:   2.隐藏:   3.按钮位置:    二、打开/关闭,窗口前置(置顶,总在其他窗口前面)快捷键:Alt+A     三、窗口会话标签页数量限制        其他快捷键:h......