本人系統為centos7
灰白色:一般文件
綠色:可執行文件
亮綠色:鏈接文件/文件夾
[code][liuyao@localhost ~]$ echo $LANG zh_CN.UTF-8 [liuyao@localhost ~]$ LANG=en_US [liuyao@localhost ~]$ ls �?��?? ��?載 �??檔 �?���? perl5 SourceCode �?��?� 模�?� ��?�?� ��?��? Software Study [liuyao@localhost ~]$ echo $LANG en_US [liuyao@localhost ~]$ LANG=zh_CN.UTF-8 [liuyao@localhost ~]$ ls perl5 Software SourceCode Study 公共 模板 視頻 圖片 文檔 下載 音樂 桌面
[code][liuyao@localhost ~]$ date +%Y/%m/%d 2016/05/01 [liuyao@localhost ~]$ date +%H:%M 23:28
[code][liuyao@localhost ~]$ bc bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 1+2+6 9 22*3 66 13%3 1 2^3 8 quit [liuyao@localhost ~]$
[code][liuyao@localhost ~]$ which java #准確定位到java命令的本源位置 /usr/bin/java [liuyao@localhost ~]$ whereis java #查找java命令出現的所有位置 java: /usr/bin/java /usr/lib/java /etc/java /usr/share/java /usr/share/man/man1/java.1.gz [liuyao@localhost ~]$ whatis java #查找java命令的基本描述 java (1) - Launches a Java application. [liuyao@localhost ~]$ locate java #查找位置裡帶有java字符串的所有位置 /etc/.java /etc/java /etc/.java/.systemPrefs /etc/alternatives/java /etc/alternatives/java.1.gz /etc/alternatives/java_sdk ……
重定向追加>>:將輸出內容重定向追加到目標文件中。若文件不存在,則創建文件並填寫;若文件存在,則將內容追加到目標文件的末尾。