“linux的简单操作命令与破密”

  1. 进入虚拟系统右键Open in Terminal进入。“linux的简单操作命令与破密”
    2.使用dhcp获取ip地址:dhclient
  2. 查看ip地址:ip a
  3. 强制终止进程:kill -9 进程号“linux的简单操作命令与破密”
    “linux的简单操作命令与破密”
    5.使用Xshell远程连接工具连接:ssh ip地址、ssh 用户名@ip地址
    [[email protected] ~]#“linux的简单操作命令与破密”
    6.修改主机名:hostnamectl set-hostname 主机名“linux的简单操作命令与破密”
    7…切换用户
    “linux的简单操作命令与破密”
  4. 切换目录(change directory):cd
    . “linux的简单操作命令与破密”
  5. 绝对路径(以/开头的路径):cd /home/haha
    10.相对路径(以./开头的路径):cd / cd home cd haha
    “linux的简单操作命令与破密”
  6. 回到当前目录的上一级目录:cd …
    回到当前目录:cd .
    切换到之前的目录:cd -
    “linux的简单操作命令与破密”
    12.修改密码
    1.Reboot the system.
    2.Interrupt the boot loader count down by pressing anykey.
    3.Move the cursor to the entry that needs to be booted.
    4.Press “e” to edit the select edentry.
    5.Move the cursor to the kernel command line(the line that start swith linux16.
    6.Append rd.break
    7.Press Ctrl+x to start.
    8.Remount /sysroot as read-write.
    switch_root:/# mount -o remount,rw /sysroot

9.Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree
switch_root:/# chroot /sysroot
10.Set a new root password:
sh-4.2# passwd [root] (change the root password)
or
sh-4.2# passwd -d root (delete the root password)
11.Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot.
sh-4.2# touch /.autorelabel
12. sh-4.2# exit
13. switch_root:/# exit
“linux的简单操作命令与破密”