Ubuntu注意事项提醒

0.ShellGNU Linux的命令解释器,提供了用户和操作系统之间的接口。当输入一个命令后,shell将对命令进行解释,并调用相应的程序。Linux中有许多shell,其中最常用的之一就是Bash Shell。它是最初Unix shell之一的Bourne Shell的增强版本。

Shell除了具有解释键盘命令并发送到操作系统的功能外,还是一种高级编程语言。Shell命令可组织在一个文件中供以后执行,这些文件在Linux系统中称为shell脚本,在DOS和Windows系统中被称为批处理文件。从而使用户利用精巧的命令生成能够完成复杂操作的shell脚本。

1.sudo注解sudo意思就是super-user do,让当前用户暂时以root身份来执行各项命令。

Ubuntu为了防止用户误操作以及黑客以及恶意代码的攻击,默认情况下将root根用户禁用了。

通常情况下,我们可以在受限用户的shell中通过”sudo passwd root”命令来启用和设定root的密码;同时我们也可以以”sudo -s -H”的命令在终端机(The Shell)模式下以root身份进行操作。

1.5* su是用来改变当前用户的,,su root,就是将当前用户切换为root,用了su root之后,下面所有的命令就可以不用打sudo了,因为当前用户已经是管理员root了。

2.诸多命令** –help:显示命令工具的信息man ** :对bash shell命令符进行解析info **:显示工具信息less 分页程序more 分页程序

3.访问ubs盘using the su command to switch to root user–> mkdir /mnt/USB –> /dev/sda1 /mnt/USB auto noauto,owner,kuzu 0 0 –> mount /dev/sda1using the su command to switch to root user–> mkdir /mnt/USB –>mount /dev/sda1 /mnt/USBNote: The “auto” on the above line means auto detection of filesystem. If your system unable to determine the filesystem type, change it accordingly to the USB drive’s filesystem (e.g. vfat or ntfs or ext2 or ext3). If you know the filesystem of the USB drive or the system unable to determine the correct filesystem, the -t option can be used to the filesystem type of the USB device:mount -t vfat /dev/sda1 /mnt/usb (for vFAT filesystem)mount -t ntfs /dev/sda1 /mnt/usb (for NTFS filesystem)

4.VMware虚拟机直接访问宿主机文件(虚拟机中的LINUX系统访问物理硬盘的windows系统文件)

方法一:安装vmware-tools;方法二:在linux上架设ftp服务器;方法三:

ps:Sudo 增加了运行命令的日志记录 (在 /var/log/auth.log). 如果你陷入困境, 你总是可以返回并看见那些运行的命令.

每个人都有自己鲜明的主张和个性,

Ubuntu注意事项提醒

相关文章:

你感兴趣的文章:

标签云: