Linux is free, but it is indeed a very good operating system, compared with the MS-WINDOWS is reliable,
Stable, fast, and other advantages, and has a wide range of powerful functions improved according to the unix version. Below, as a typical
Ls Running Mechanism
Command for viewing environment variables:EnvOrEcho $ path
The which LS command is used to find the location of all the LS commands in the environment variables. It is returned not only when one is found, but also how many ls
What is a file system?
A file system is a method and data structure for the operating system to save file information on a partition.
The Linux File System has a similar general structure, and its key components include:
Super Block
Index node inode
1. How do I check whether a port is open?
A:Netstat-lThis command will list all listening ports or useTelnet localhost 22This command tries to connect to port 22. If the port is not open, the following error message is returned:
Vadi @ vadi-LAPTOP
Linux system basic commands date time command date is used to view and set the current system Time: format the display time: + % Y -- % m -- % d command hwclock (clock) the hardware clock time command cal is used to view the Calendar uptime to view
Help commandsMan eg: man lsHelp eg: help cdInfo eg: info ls-- Help eg: ls -- helpCommand for viewing Environment VariablesExport, printenv, env, setCommand for viewing timeDate, hwclock, calDate: displays or sets the system clock.-S: set the time-D:
Linux basic commandsLinux IntroductionKernel Library :. so shared object, windows: dll dynamic link library application Linux basic principles: 1. composed of a single small program with a single purpose; combined with a small program to complete
first, the directory structure of Linux Directory name meaning/bin common commands for Linux in this directory, in some versions the same directory as the root directory./boot This directory is stored in the system to use the program when booting,
Commands are divided into internal commands and external commandsPriority: alias-internal command-hash-external commandThe common basic commands are:SU: Switching usersWho: Check all current accountsWHOAMI: Check your accountWhereis: Find the
Here we introduce the common Basic command one, log off shutdown restart logoff system logout Command 1Logout logoff is the relative operation of the landing system to leave the system users as long as the direct release of the logout command:
Editor Ed Vi/vim (interactive) sed (non-interactive)Use of Vi/vim1. Command modeMove Cursor Direction key HJKLH L MG 1G NGCopy Line yy NyyPaste PDelete Row dd NddDDelete character XSave Exit ZZ2. Bottom-line modeShow line number set NuSet
CD commandThe CD is used to change the user's directory after the same as nothing will go directly to the currentThe user's root directory can only be followed by a directory name, not a file namecd– indicates the last directory in which it was
1. View the file information in the directory> LS//list View the file information in the current directory> ls-l or ll//to display the file information in a detailed list> ls-a//View all files (including hidden files)> Ls-al//View all files in a
1. pwdDescription: The function of the PWD command is to display the name of the current working directory.Usage: pwd[options] ...Option:-P Show the true path of the link[Email protected] ~]# pwd #返回当前工作目录/root2. cdDescription: Toggle the current
rsync command ParametersAfter the rsync server configuration is complete, the next step is to issue the rsync command on the client side to back up the server's files to the client.Rsync is a very powerful tool, and its commands have a lot of
1, view current directory: PWD2, switch folder: CD destination folder relative path3, view catalog: ls4. View directory and file permissions: LL5, edit a file: Vim file name = "Press the key i=" A, after editing quit do not save press ESC, then:,
Cd:CD dir: Switch the working directory to the directory represented by DIRCD: Switch The working directory to the home directory of the logged-on userCD-: Switch The working directory to the last working directoryCD ~: Switch working directory to
As we all know, the operating system (OS) is the closest to the hardware of the first layer of system software, it is the hardware to transform the bare metal into a fully functional virtual machine, making the use and management of computer systems
Command format: command-option parameterLs-a L H i DFile type user rights belong to group permissions other people permissionsMkdir-p Creating a directory recursivelyCdPwdRmDir Delete Empty DirectoryCp-r Copy Directory-p retain original file
Linux Common Basic Command collation1-CD Switching directoriesThe CD enters the user's home directory;CD ~ Enter the user's home directory;CD-Returns the directory where the directory was before it entered;Cd.. Return to the parent directory (if the
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.