Major Stuff about Linux

Version of Kernel, Watch out, I mean the KERNEL

2.5.x 5.3.x Just remember two number, the first number means major version, the second number means minor version, let off the remain.

The Linux I‘ll Choose

Centos, comes from red hat enterprise linux, version 7.X, kerner version 3.10.X

Login Through SSH

This is aliyun ssh example
the command is:

ssh (name)

Directory of Linux

first class

bin   dev  home  lib64       media  opt   root  sbin  sys  usr
boot  etc  lib   lost+found  mnt    proc  run   srv   tmp  var

and the directory "~" is "/root"
and "sbin" means "super binary" which belong to the user ROOT, not regular users.

  • /opt: third party software (but nobody use it, instead we use /usr/local
  • /mnt, /media, /misc: all for mount, but we only use /mnt
  • /proc, /syc, /net: don‘t touch these, they are virtual file system, data inside is from the memory.
  • /srv: some server data, don‘t touch it.
  • /usr: means UNIX Software Resource , IMPORTANT RESOURCES, DON‘T FIDDLE WITH IT.
  • /var: variable data, like log, cache.

second class

/usr/lib/       // the library that app use
/usr/local/    // the place our own softwares live
/usr/share/     //some resources like help documents, font resources
/usr/src/      // the source code, can be replaced by /usr/local/src  and /usr/src/kernels
/usr/src/kernels/     // where the kernel lives

Reboot of Linux Server

? ? do some times sync command before the shutdown command, and only this reboot command is recommended.

shutdown -r now  

Major Stuff about Linux

上一篇:Ubuntu20.4静态ip和dhcp配置


下一篇:Linux 安装 Tomcat