Linux命令模式下执行命令基本操作

来源:互联网 发布:股票数据统计 编辑:程序博客网 时间:2024/06/16 18:43

基于Ubunto 10,蓝色为命令行输入的命令,黑色为运行结果,主要熟悉linux基本操作

==================================================

登录Ubunto后,首先使用快捷键【 Ctrl + Alt + T 】打开终端,然后输入命令如下:

root@Ubunut10:ls

hi3516c  公共的  模板  视频  图片  文档  下载  音乐  桌面
root@Ubunut10:~# ls -al ~
总用量 212
drwx------ 33 root root  4096 2016-08-24 16:20 .
drwxr-xr-x 22 root root  4096 2014-03-19 20:51 ..
-rw-------  1 root root  4132 2016-08-24 16:21 .bash_history
-rw-r--r--  1 root root  3106 2010-04-23 17:45 .bashrc
drwxr-xr-x  5 root root  4096 2016-08-24 16:23 .cache
drwxr-xr-x 10 root root  4096 2016-08-24 16:22 .config
drwx------  3 root root  4096 2014-03-19 20:34 .dbus
drwxr-xr-x  4 root root  4096 2014-03-22 21:50 .designer
-rw-------  1 root root    16 2016-08-24 16:10 .esd_auth
drwxr-xr-x  3 root root  4096 2016-08-24 16:20 .evolution
drwx------  5 root root  4096 2016-08-24 16:23 .gconf
drwx------  2 root root  4096 2016-08-24 16:26 .gconfd
drwx------  9 root root  4096 2014-04-14 22:27 .gnome2
drwx------  2 root root  4096 2014-03-19 20:35 .gnome2_private
drwxr-xr-x  2 root root  4096 2014-03-19 20:45 .gstreamer-0.10
-rw-r--r--  1 root root   160 2016-08-24 15:21 .gtk-bookmarks
dr-x------  2 root root     0 2016-08-24 15:21 .gvfs
drwxrwxrwx 10 root root  4096 2014-04-14 22:25 hi3516c
-rw-------  1 root root  6520 2016-08-24 15:21 .ICEauthority
drwxr-xr-x  2 root root  4096 2014-03-19 20:45 .icons
drwx------  3 root root  4096 2014-03-19 20:37 .local
drwx------  3 root root  4096 2016-08-24 16:20 .mission-control
drwx------  4 root root  4096 2016-08-24 16:10 .mozilla
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 .nautilus
drwxr-xr-x  3 root root  4096 2014-03-28 21:31 .openoffice.org
-rw-r--r--  1 root root   140 2010-04-23 17:45 .profile
drwx------  2 root root  4096 2016-08-24 15:21 .pulse
-rw-------  1 root root   256 2014-03-19 20:22 .pulse-cookie
-rw-------  1 root root 33039 2014-04-14 22:27 .recently-used.xbel
drwx------  3 root root  4096 2014-03-22 21:42 .synaptic
drwxr-xr-x  2 root root  4096 2014-03-19 20:45 .themes
drwx------  4 root root  4096 2014-03-19 20:45 .thumbnails
drwxr-xr-x  2 root root  4096 2012-02-14 18:48 .wapi
-rw-------  1 root root  7302 2016-08-24 16:25 .xsession-errors
-rw-------  1 root root  1552 2016-08-24 15:14 .xsession-errors.old
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 公共的
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 模板
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 视频
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 图片
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 文档
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 下载
drwxr-xr-x  2 root root  4096 2014-03-19 20:34 音乐

drwxr-xr-x  2 root root  4096 2014-03-26 20:17 桌面


root@Ubunut10:~# date
2016年 08月 24日 星期三 16:29:34 CST
root@Ubunut10:~# cal
      八月 2016
一 二 三 四 五 六 日 
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31


root@Ubunut10:~# cal 9 2016
      九月 2016
一 二 三 四 五 六 日 
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30


root@Ubunut10:~# 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'. 

985+211
1196
981-211
770
scale=6
985/211

4.668246
985*211
207835
quit
root@Ubunut10:~# echo $LANG

zh_CN.UTF-8

root@Ubunut10:~# 


最后Ctrl + L复位清屏,Ctrl +d 推出终端

==================================================

实际操作运行结果




1 0