Linux 清屏命令

來源:互聯網
上載者:User
http://hi.baidu.com/nicker2010/item/49a2c1e15423aebf2e140bef

DOS時代,列出目錄的命令是dir,清屏的命令是cls。

在Linux中類似的命令分別為 lsclear,如果不習慣,我們可以用別名來使用相同的命令:

[blackrose@localhost ~]$ alias dir='ls -l'
[blackrose@localhost ~]$ dir
總用量 36
drwxr-xr-x. 2 blackrose blackrose 4096  2月 13 19:28 Desktop
drwxr-xr-x. 2 blackrose blackrose 4096  2月  7 17:49 Document
drwxr-xr-x. 3 blackrose blackrose 4096  2月 12 16:46 Download
drwxr-xr-x. 2 blackrose blackrose 4096  2月  7 19:17 Music
drwxr-xr-x. 2 blackrose blackrose 4096  2月 10 13:48 Picture
drwxrwxr-x. 2 blackrose blackrose 4096  2月 12 20:11 Program
drwxr-xr-x. 2 blackrose blackrose 4096  2月  7 17:49 Public
drwxr-xr-x. 2 blackrose blackrose 4096  2月  7 17:49 Template
drwxr-xr-x. 2 blackrose blackrose 4096  2月  7 17:49 Video

[blackrose@localhost ~]$ alias cls='clear'
[blackrose@localhost ~]$ cls

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.