CD(change direction): Changing the Directory{CD/: Go to the root directoryCD Directory Name: Enter the directoryCd.. : Go to the previous level directoryCd. : Enter the current directoryCD ~: Enter the host (home) directory (cd ~ Directory Name:
First, shutdown, restart1. Turn off the machineShutdown option [option] ... Parameter (time) option:-R: Restart-H: Shutdown-C: Cancel the previously set restart or shutdown command-K: Send only reminder time format: default equivalent to +1hh:mm now:
1. Install the VMware Visual machine secret key2. Installing CentOS6.5Linux Common commands1.PWD View current Path2.ls view directories and files under the current pathLs-l viewing directories and files as a listLs-la View all directories and files
A grep find cut1.grep searching for a string -N Display Line number-R Recursive Sub-directory "^string" line starting with stringLine with "string$" ending in string"^string$" searches only string rows that do not contain other characters * All
Basic commands and directory structure directories in Linux
First, the Linux basic directory structure
II. basic Commands
Third, browse the directory
Iv. Intermediate Command
Five, change the password
VI. environment
first, the Linux operating environment~ location is under the/root/directory
Root: User name currently logged in
@ delimiter
Chengliang: Host Name
~: Current path location
Linux directory structure:To switch directories:New
◊ Basic Framework :A) directory Operations commandb) File Operation commandsOne, directory operation command:1. Ls command:Ls–a: Show hidden filesLs–l: Show All Files (excluding hidden files)ll equivalent to Ls-lLs–h: Show file Size (how many k)Ls–f:
My Linux Learning Notes
Blog Category:
Linux
Http://www.blogjava.net/huanzhugege/archive/2007/08/23/linux.html1Top look at the currently running processKill-9 PID terminates a process (tree)The CD returns to the root
Allow non-root users to use "sudo"Root login system, execute "visudo", add a new rule according to the example (remember the password entered is the current user password, not the root password)#不需要密码执行sudo命令Hadoop all= (All) Nopasswd:allDateTime
Stat command:
Command Function ; Display the status of a file or file system
command Format ; stat [ options ] ... file
Command parameters:- F status of the file system- Z Print SELinux Security Catalog- T display information in a concise
Date command1. Command function: The date command can be used to display or set the system's dates and times.2. Command format: Date [options] ... Format3. Command parameters:-D Displays the date and time that the string refers to650) this.width=650;
One: TimeDate-View current time date %y:%m:%d--Specify format output date-s "00:00:00" --Modify time 00:00:00cal --command line View Calendar Uptime--run time information & nbsp; two: Output view echo "" --return "" Specify content Cat filename--
Linux common Commands (ii). txt-----------users, user groups, file systems, and networksFirst, the user's management1. Management of the userUseradd + "User name" new how users such as: Useradd dy-P: Specify the user's password-C: Make an annotated
The command we use when using Linux is nothing more than command + options + parametersExample Shutdown-h now shutdown/is the command to shut down-h/is the option now/is the parameterMain learning File/directory operations: View, create, copy,
Linux command su: Switch account Note: When there is a # symbol, this is the superuser; when there is a $ sign, this is the normal user cd: Enter the specified directory LL: Vertical display directory content ls: Horizontal display directory
shell--command InterpreterThere are several different types of shells in the Linux environment, where the bash shell is the default installed and used shellClear the terminal screen: Clear, Ctrl+l and CLS (if first input: alias Cls=clear) effect is
useradd [option] user_name: This command is used to add a user[option]-R:-M:-G:-G:-P:-S:-U:-D:-F:Userdel-r User: Delete users in/etc/passwd,/etc/shadow,/etc/group Records, while deleting the user's home directory;Usermod [-u uid] [-D home[-m]] [-s
1.Output RedirectionLinux The default input is the keyboard, and the output is the monitor. You can use redirection to change these settings. For example , when using the WC command to manually enter a text to calculate the number of characters,
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.