zoukankan      html  css  js  c++  java
  • clear

    terminal上操作时, 看见之前输入的N多命令记录,
    像我一样的小小强迫症患者, 可以再输入clear命令, 然后回车.
    而重度强迫症患者, 可以试试输入reset命令.

    我们先来看看clear的介绍:

    man clear 
    #
    NAME
           clear - clear the terminal screen
    
    SYNOPSIS
           clear
    
    DESCRIPTION
           clear  clears  your  screen if this is possible, including its scrollback buffer (if the extended "E3" capability is defined). 
           clear looks in the environment for the terminal type and then in the ter-minfo database to determine how to clear the screen.
    
           clear ignores any command-line parameters that may be present.
    

    简而言之

    clear没有参数, 那么clear ...后面加的任何参数会被忽略,然后照旧执行clear.
    比如clear --help命令, 就没啥效果, 只能通过man clear命令来查看clear的介绍.
    其次, clear操作后, 只是把终端屏幕翻到了新的一页, 所以可以通过拉动滚动条来查看历史内容.

  • 相关阅读:
    洛谷 P6622
    洛谷 P6619
    LOJ 3188
    CF::Gym 102174G
    eJOI2017~2019
    洛谷 P6313
    洛谷 P6305
    JSOI2020 酱油记
    洛谷 P6234
    CodeForces 1334F
  • 原文地址:https://www.cnblogs.com/taadis/p/12126220.html
Copyright © 2011-2022 走看看