linux -root and file properties, permissions, etc.

1. Default Easy to install ubuntu without root user, first create the root password can use the sudo passwd command to set a new root password

zzh@ubuntu:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

2. su root switch to your root privileges, the difference between the general accounts and the root user is the command line or suffix is ​​$ # 

  su zzh switch to common user, which is one of the linux ZZH a user.

root@ubuntu:/home/zzh# su zzh
zzh@ubuntu:~$ su root
Password:
root@ubuntu:/home/zzh# su zzh

  Individual operations to make use of normal user privileges

3. Modify the linux install new screen resolution lists optional xrandr xrandr --size 1600x1200 resolution list to change the resolution (where x is the x-xyz instead of shift + 8 *)

4. Switch os pure graphic command line interface has a shortcut tty1-tty6 [Ctrl] + [Alt] + [Fn] (where n = 1 ~ 6)

5. root ls -al command occurs at the file permissions example: [-rwxr-xr--] 1.3.3.3 split into view, the following information: - that it is representative of a file that is readable owner permissions write executable, the same user group permissions are readable executable, other users are read-only.

Guess you like

Origin www.cnblogs.com/zzhhzf/p/12023120.html