Linux Basic Setup command after installation date Print or set the system date and time pwd return working directory name and print name of current/working directory USERADD    &NB sp; Create a new user or update default new user information passwd update a user ' s authentication[certificate] tokens (s) [Mark] ls List Directory Contents su run a shell with substitute[Override] User and group IDs whoami print effective[valid] UserID EXIT            &Nbsp; cause[raises] normal process termination whatis Search the Whatis database for complete words[command Introduction] df & nbsp; the file system disk space usage[use] du estimate[estimates, statistics] file space usage fdisk Zoning Management Tools hdparm get/set hard disk parameters[parameters] [command]command–help Help to find the order ctrl+c Can force interrupt program to run login user initialization file for .bash_profile . bashrc[See Appendix 1] The Log out user execution file is. bash_logout root directory function:/bin & Nbsp; binary File Program tool/boot system startup must file/dev put system equipment, Linux put peripherals, disk ... As a document/etc put system configuration file/home General user's personal home directory/initrd Temp directory, initialized for boot use, usually without/lib system library [similar to Windows DLL library]/lost+found As with Windows garbage binsThe function/misc generally not, do not know the function of things can be put here/mnt mounting of external equipment/opt Install third party software, general large database, And the server can be installed in this/proc Memory Information/root Super Admin directory/sbin management tools used by Super admin/tmp temporary file access directory/usr Public information, software and documentation for all users/var put the Dynamic Data network settings/etc/resolov.conf Save native Default domain name and DNS server information/etc/sysconfig/network has hostname and IP protocol/etc/sysconfig/networking including host basic network information, for system startup
/etc/sysconfig/network-scripts/This directory is the system to start the most initialized network information/etc/sysconfig/network-scripte/ifcfg-eth0 parameters are described as follows: Device=name name indicates the name of the physical device Ipaddr=addr addr represents the I-P address assigned to the card Netmask=mask mask represents the network mask NETWORK=ADDR addr represents the network address BROADCE st=addr AD Dr Indicates whether the broadcast address onboot=yes/no activates the card at startup Bootproto=proto Proto value can be none (no start Protocol), BOOTP (using BOOTP protocol), DHCP (using DHCP protocol) Userctl=yes /no whether to allow non-root users to control the device ifconfig Configure a network interface netconfig a text-style graphics tool for network configuration route show/manipulate[operation, using] the IP routing[routing table User environment settings 1, User language environment locale get locale[Local] specific[detailed] Information Just set Lang, and everything else is the same as Lang./etc/sysconfig/i18n Language Settings file 2,/etc/sysconfig/hwconf hardware information kudzu detects[Check] and configures new and/or changed hardware on a System 2, boot configuration chkconfig &n bsp; updates and queries[query] runlevel information for system services setup & nbsp; a text Graphics tool to manage startup configuration (services, firewalls, etc.) ntsysv a tool to set the Stop/start of system services in A RU Nlevel. (level) Text graphics/etc/init.d all boot configurations/etc/rc*.d/ Configure/etc/inittab at all levels system initialized configuration file, decided to start with that level
Appendix 1.bash_profile and. BASHRC What's the difference/etc/profile: This file sets the environment information for each user of the system, and the file is executed the first time the user logs on.
and collects the shell's settings from the/ETC/PROFILE.D directory's configuration file.
/ETC/BASHRC: This file is executed for each user running the bash shell. When the bash shell is opened, the file is read.
~/.bash_profile: Each user can use this file to enter shell information that is specific to their own use, and when the user logs on, the
The file is only executed once! By default, he sets some environment variables to execute the user's. bashrc file.
~/.BASHRC: This file contains bash information dedicated to your bash shell, and when you log in and each time you open a new shell, the
The file is read.
~/.bash_logout: Executes the file every time you exit the system (the Bash shell is exited).
In addition, the variables set in the/etc/profile (global) can be applied to any user, while the variables set in ~/.BASHRC, such as local, can only inherit the variables in/etc/profile, they are "parent-child" relationships.
~/.bash_profile is an interactive, login-style entry into bash to run
~/.BASHRC is the interactive non-login way into bash run
Usually the two settings are roughly the same, so the former usually calls the latter
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.