Linux basic commands on file operations (in case) in the root directory (/) to create a new directory tew.kdir/test to change the current directory to/test, under this directory, create an empty file with the abbreviation of your own name, and then
Date Time command:DateFunction: Displays or sets the time date.Show time or Date:Date [option] ... [+format] Displays the time and date in the specified format.Option: OptionsFormat: Formatting symbols.Example:[Email protected]:~$ Date +%d10/07/17
Linux directory and file management 1.Linux directory structureLinux is a reciprocal structure , from '/' as a starting point, where all files or directories are represented by '/'Linux has only one '/', analogy to Windows has multiple '/' (a disk
Linux basic commands (2) commands on disk space, linux disk spaceDisk Space commands
Command
Function
Mount
Mount a File System
Umount
Detach a mounted file system
Df
Check the disk space of each hard
Linux basic commands and linux basic notes
Today, we are building a Linux production environment. This is a complex task that has to be done. Although I have done it many times, there are still many steps and commands that I don't remember. Every
Linux basic commands and linux commandsLs command
Pwd: display the current directory touch 11.txt: Create a txt file named 11 mkdir laowang under the current directory: Create a folder named laowang ls-a-l-h in the current directory: it is
0.ls-lhhumanized display the properties of files in the current directory1. Links:Hard link (itself a file pointer, and the original file pointer equivalent)ln filename1 filename2Soft link (itself a pointer that creates a pointer to the original
Summary of commands: 100mkdir command to create a directory mkdir directoryLs-l (long) d (directory) displays the directory or file name listCD switch directory hierarchy change directoryecho Print out content (printf)Vi/vim Notepad Editor Command
TTY Console terminal tty1~tty6?CTRL + ALT + F2~F6 switch consoleALT + F1 returnHowever, after using init 3 in the graphical interface, you cannot use ALT + F1 to return, because the two are not a problem.Init 3 Toggle Current Run levelCTRL + ALT + F2
1. View Help :
[[email protected] ~]# Man CD//view Help documentation for CD instructions
2. Display the current working directory :
[Email protected] ~]# pwd/root
3. List the contents of the current directory: LS
Examples of find common usages in LinuxFind Path-option [-print] [-exec-ok command] {} \;Parameters for the Find commandThe directory path that the Path:find command looks for, for example, to represent the current directory, and/to represent the
Shutdown and restart commands
Shutdown#-H shutdown,-r restart;-C to cancel the previous shutdown command;-now immediately shut down the machine
HaltPoweroffInit 0
RestartRebootInit 6
--------------------------------------
1, LS display directory properties-L: (can also be abbreviated to LL), list display permissions and other properties-A: Show all files including hidden files, etc.-D: Lists only the directory itself2, CHGRP change the group of files belong
Here are some of the notes I learned about Linux, as summarized belowFirst of all to popularize common sense: DNS is used to resolve the domain name, the URL port default is 80, can not write, localhost is 127.0.0.1, if it is root, the prompt is: #,
Linux basic commands (all files)Command format:command [options] [parameters]Note: Use spaces to separate commands, options, and parameters, most of which support only 256 characters.HelpMan Handbook eg. Man MansMan command/Function name/header
GoalBe familiar with the commands commonly used by LinuxLsClearCdPwdMkdirTouchRmCpMvTreechmodFindGrepredirectSoft connections, hard linksCompressionShutdownRebootW.H.O.ExitpasswdSudo1> viewing file information: lsLS is the abbreviation of the
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
The vast majority of databases run on Linux and UNIX platforms, and as the X86 platform's computing power nears or exceeds minicomputer, and in the tide of the IoE, more and more database environments run on Linux platforms.The Linux system is large
Online about the Linux command a lot of detailed, I will put some common commands to collect and paste it, for everyone to view (note: Will simply mention, the specific operation please see the relevant information)1. Add: A. File touch filenameB.
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.