Linux Linux System administration commands

Source: Internet
Author: User
Tags disk usage

DF detects disk space usage and availability of file systems -- used to detect disk space usage and availability of file systems, and can show the usage of all file system docking points and disk blocks --DF [parameters]--  Common parameters and meaning   "-a"   Displays disk usage  for all file systems "- k " Show    "  -t<fs>" in K-byte to  show disk space usage for each specified file system  - -DF-t filename   "-t"  displays file system

The size of the disk space occupied by the DU statistics directory or file - the command executes the same result as DF, which is more focused on disk usage. --du [parameter] directory or file name -- common parameters and  meaning "-a"   Recursive display of  data block "-S" in files and subdirectories in a specified directory    displays data blocks  occupied by a specified file or directory  "-B"   Displays disk usage  in bytes "-L  "  calculates all file sizes and computes multiple times for hard-linked files

mkfs Format File system -this command is equivalent to aformat command in dos/Windows system for creating a specified file system --mkfs [parameters] device file name [blocks]--  Common parameters and meanings   "-v"   verbose display  mode "-t<fs> "   Specifies the file system type, with the default  value of ext2"-C" to   check for disk bad blocks while creating the file system   " blocks "  Size of File system block

rpm using the tool to install the application software--Linux provides the RedHat package management tool RPM (RedHat Packages Manager) program to manage application installation and uninstallation--It is a software package release and implementation of automatic installation of the program, need to use the RPM program installed software package, the suffix is. rpm. This package can be installed, uninstalled, and maintained. --rpm [Parameters] [package name]--common parameters and meanings"- I."developing packages for installation"- H"Use"#"Show detailed installation process and progress"- v"display details of the installation"- Q"query whether the system has the specified package installed" -A"querying all packages that the system has installed"- e"Uninstalling packages

su  command switch User -su [username]- When you need to return to the original normal user account, enter the Exit command directly. - If you want to enter another normal user account, you can add another account after the SU command, and then enter the password - If the SU command does not carry a user name, the system by default from the current user to switch to the superuser, and prompt the user to enter the superuser password - -The difference between"su" and "Su-" commands is that"Su-  " when you switch to the corresponding user, the current working directory is automatically converted to the user's home directory after the switch

useradd  Add user account -- Add a user account to Linux you can use the AddUser or Useradd command,  because the adduser command is a link to the Useradd command, so The two commands are in exactly the same format --useradd [parameters]  New user account -- common parameters and meaning   "-d<dirname>  "   Specifies the home directory when the user logs on to the system, and  if this parameter is not used, the system automatically creates a directory with the same name as the user name in the/home directory-for example: useradd-d/home/bird bird2   ---bird2 is the account name,/home/Bird is the main directory of Bird2 -the general user of the system's main directory is generally built in/home/this path

passwd  Set User password -- in Linux, Superuser can use the passwd command to set or modify the user's password for a normal user. Users can also use the command directly to modify their own passwords without having to use the user name after the command. --passwd [parameter] user name

userdel  Delete User --userdel [parameter] User name --if the parameter "-R"is used, it means that when the user is deleted, Delete the user's home directory
--Login status can not delete account

Linux Linux System administration commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.