Linux---从零搞起1

来源:互联网 发布:柴鸡蛋的逆袭 网络剧 编辑:程序博客网 时间:2024/05/06 04:39

1、vi  :新建文件     wq!:强制保存并退出文件  du:查看目录大小  ls -s:查看文件大小    cp:copy   mv:move(末尾加-r:递归删除某个目录) rm:删除       su:superuser  

2、“#”代表这个命令要以root用户执行  “$”代表以普通用户执行     -h代表human 或者 help   ctrl+h 显示隐藏文件

3、“|”代表流     $ timedatectl status | grep local  在timedatectl status的命令下找到里面带有local的语句

4、将硬件时间设置为 localtime:   timedatectl set-local-rtc 1  最后一个数字改为0 就是设置成UTC

5、ntpdate0.asia.pool.ntp.org 将时间与网络时间同步   hwclock -w   将时间写入bios

6、所有加有ctl的命令,都代表对系统文件的control

7、 pacman -Rsc gnome-***  移除软件   pacman -S 安装   pacman -Ss   查找   pacman -Syy 更新数据库

8、“*”是通配符,代表任意个数的任意字符。“*.dat”  代表所有以.dat为后缀名的文件

9、ctrl+c 强制停止   冒号代表开始输入命令

10、win8 取消登录密码运行命令: netplwiz

11、关闭进程  pkill    alt+f2输入“r”  刷新

12、root用户打开资源管理器   nautilus

13、小系统打开win8   root (hd0,0)   chainloader bootmgr   boot

         打开linux   root (hd0,2)  kernel /data/system/linux/live/archlive    initrd  *****/archlive.gz   boot

14、dconf-editor 注册表编辑器 



附:装linux系统:

1、root  输入用户名

2、mount /dev/sdc1/temp  将移动硬盘挂载到新建的临时文件夹上

3、mount --bind/temp/backup  /data    将backup与data文件夹绑定

4、mkfs.ext2/dev/sda4          格式化磁盘分区

5、mount /dev/sda4/mnt    将此分区挂载到临时路径mnt上

6、/data/system/linux/archlbox  /mnt    调用脚本到mnt

 


原创粉丝点击