纯粹按着鸟哥的书上的基本命令打一遍不喜勿喷

Chapter5.首次登录

一.基础命令:

1.显示时间和日期的命令:date

dzhwen@deng:~$ date
2014年 02月 23日 星期日 14:59:20 CST
dzhwen@deng:~$ date +%Y/%m/%d
2014/02/23
dzhwen@deng:~$ date +%H:%M
14:59

 

2.显示日历:cal

dzhwen@deng:~$ cal
      二月 2014         
日 一 二 三 四 五 六  
                   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     

3.计算器:

dzhwen@deng:~$ bc

二.热键:

1.[Tab]按键:

a.[Tab] 接在一串命令的第一个命令的后面,则为“命令补全”;
b.[Tab] 接在一串命令的第二个命令以后时,则为“文件补全”;

2.[Ctrl]-c : 中止当前执行的程序

3.[Ctrl]-d:退出字符界面

4.man + 指令 :对于要查找指令的说明

5.数据同步写入磁盘:sync

二.重启,关机:

root@deng:~# shutdown -h now
立刻关机,其中now相当于时间为0的状态
root@deng:~# shutdown -h 17:00
系统在今天的17:00关机,如果在18:00才执行该命令,则隔天才关机
root@deng:~# shutdown -h +10
系统再过10分钟后自动关机
root@deng:~# shutdown -r now
系统立刻重启
root@deng:~# shutdown -r +30 'The system will reboot.'
再过30分钟系统会重启,并显示后面的消息给所有在线的用户

Chapter6.Linux的文件权限与目录配置

一.Linux文件属性

1.ls -al

root@deng:~# ls -al
总用量 72
drwx------ 12 root root 4096 11月 21 01:00 .
drwxr-xr-x 23 root root 4096 10月 23 22:26 ..
-rw-------  1 root root 2519  2月 23 15:18 .bash_history
-rw-r--r--  1 root root 3106  4月 19  2012 .bashrc
drwx------  3 root root 4096 10月 23 22:38 .cache
drwx------  5 root root 4096 10月 23 22:39 .config
drwx------  3 root root 4096 10月 23 23:01 .dbus
drwx------  2 root root 4096 11月 21 00:54 .gconf
drwx------  3 root root 4096 11月 21 01:00 .gnome2
drwx------  2 root root 4096 10月 23 23:01 .gnome2_private
drwx------  2 root root 4096 10月 23 22:39 .gvfs
drwxr-xr-x  3 root root 4096 10月 23 22:38 .local
-rw-r--r--  1 root root  140  4月 19  2012 .profile
drwx------  2 root root 4096  2月 23 16:30 .pulse
-rw-------  1 root root  256 10月 23 22:28 .pulse-cookie
drwxr-xr-x  2 root root 4096 11月 21 00:58 .vim
-rw-------  1 root root 4013 11月 21 01:00 .viminfo
-rw-r--r--  1 root root 1265 10月 23 23:04 .vimrc
View Code

相关文章:

  • 2021-04-26
  • 2021-11-23
  • 2021-11-22
  • 2021-11-22
  • 2022-01-26
  • 2021-12-18
  • 2021-10-01
  • 2021-09-02
猜你喜欢
  • 2021-07-20
  • 2021-05-10
  • 2022-12-23
  • 2021-09-03
  • 2021-12-19
  • 2022-01-14
相关资源
相似解决方案