) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/A7/13/wKioL1ngVDmR7fCTAAHDdmb_m4k622.png "style=" float : none; "title=" Linux environment variable, CP command, MV Command, document view 740.png "alt=" Wkiol1ngvdmr7fctaahddmb_m4k622.png "/>when moving files to the target directory, the target directory will be placed in the target directory, which is the same as the CP command. some commands for do
Details of Common commands on Linux servers and Common commands on linuxI. User
1. useradd is used to create an account.
Useradd newname // create newnamepasswd newname // set change the password. After entering this command, you will be prompted to enter the password
2. delete a user
userdel newname
3. Switch users
su - youruser
4. ssh remote login
ssh -l root
provides a function to find corrupted files. Run this command: rpm-Va. Linux will list all corrupted files for you. You can fix the issue through the Linux installation CD.
8. in Linux, there are many files, which we will inevitably encounter when using. in Windows, we can use the "Start/search" menu to quickly deter
control Web servers.However, because telnet uses plain text to send packets, the security is poor. many Linux servers do not enable the telnet service, but use a safer ssh mode. However, many other systems may use telnet to provide remote logon. Therefore, it is necessary to find out how to use the telnet client.Telnet commands can also be used for other purposes, such as determining the status of remote s
Common Linux commands and common linux commandsDirectory: relative path and absolute path.
Absolute path: the path is written in the root directory, for example,/usr/share/doc.
Relative Path: the path is not written by/. For example, if/usr/share/doc is to be written under/usr/share/man, you can write it as [cd .. /man: This is the relative path.
Cd: Swi
In the process of using Linux, we need to follow some parameters after each command. However, it is troublesome to manually add common parameters each time. Linux may use the command alias function to reduce your input. The following operations will be clear.
OS: RedHat as4.2
Ls-l list detailed document directory informationLs-Hl lists document sizes, in K.Ls-hlt lists documents sorted by Time
For the ab
your own user directory:On the target machine: CP tmpdir.sql.gz/home/makaidong/Then on this machine:scp-r [email protected]:/home/makaidong/\*.sql.gz.Note: \* escapeNohupNohup Hive--service hiveserver 2>1 Dos2unix windows-linux Shell Format conversionFind. -name "*.conf" | Xargs Dos2unixVar.sh wrote: year=2015Shell import Source introduces other shells#!/bin/bash#在其他目录: source./sh/var.sh #sh目录下 or source sh/var.shSOURCE var.shRm-rf./data.txtTouch Dat
#查看系统内核/Operating System/CPU Informationuname-a# return: Kernel name host name Linux kernel version kernel build date OS version CPU model hardware platform GNU/linux# Viewing the operating system versionHead-N1/etc/issue# View gcc or G++versionGCC-VG++ -v#c++more rigorous grammar rules; #编译阶段, G+ + will call GCC, which is equivalent for C + + code, but becausegcc comma
Common commands in Linux and Common commands in linux
Including date and time, viewing hard disk information, shutdown and restart, output and view, archiving and compression, and searching.Date and Time
The operation here is equivalent to clicking the time in the lower right corner of windows to view the system date
Logout Exit SystemGedit Text Editor ToolsUname–r View kernel version information, uname–a more detailsCat/proc/cpuinfo viewing CPUsCat/proc/meminfo Viewing memoryHostname Viewing host namesIfconfig eth0 view eth0 IP AddressAlias ls= ' ls–ll ' setting aliasesTo view the path of the current terminal: TTYView current Shell:echo $SHELLAll Shell:cat/etc/shells under the current systemView CentOS System hostname Format: Echo $PS 1Distinguish internal or external c
Linux Study Notes (7) common Linux commands: compression and decompression commands, learning notes compression and decompression(1) gzip
The gzip command is used to compress files. The original English meaning is GNU zip. The path is/bin/gzip. The syntax format is as follows:
Gzip [file]
The file format is .gz.
For ex
Common Linux commands (10) and common Linux commands (
The nl command is used in linux to calculate the row number in the file. Nl can automatically add the row number to the output file content! The default result is a little different from cat-n. nl can compare multiple di
Linux traditional network configuration command and ip advanced routing command-Linux Enterprise Application-Linux server application information, the following is a detailed description. Knowing how to configure network commands is a must-have technique for general technicians. After some time of research and study, I
be called by command-line mode, but only for certain commands-the most common are installation and uninstallation commands.Since aptitude has more information than apt-get, it can be said to be more suitable for installation and uninstallation. Apt-cache showpkg pkgs--displays package information. apt-cache dumpavail--Print the list of available packages. Apt-cache Show pkgs--shows the package record, similar to Dpkg–print-avail. Apt-cache pkgnames--
1. man [manual]: usrbinman gets help documents from commands or configuration files, view the help man [command or configuration file] of the command first. the moreegmanls command is called to view the help information of the ls command. manservices: view the help information of the configuration file services.
1. man [manual]:/usr/bin/man
Obtain the command orConfiguration fileTo view the help documentation of the command first.
Man [command or conf
Basic Linux commands and Linux commands
[Epeter @ localhost ~] $
Where: epeter is the user name; localhost is the current host name ;~ The broken wave number indicates that the current user directory is used (If yes, the slash indicates that the current root directory is used ); $ indicates that you are currently logge
Common commands in linux: 1. Common commands in linux
Man help document
Usage method: man command name, such as man; simple view method: command name -- help
Or help command name
Ls list folder content
Tree View directory structure
Cd switch directory
Pwd View Current Directory
Cp Replication
Move music videos
Common Linux commands (30) and common linux commands
The cal command can be used to display calendars in the Gregorian calendar. The Gregorian calendar is an international calendar, also known as the Gregorian calendar. The "Gregorian Calendar", also known as the "solar calendar", is a year when the earth is traveling
Common Linux commands (13) and common linux commands
The head and tail are just as easy to understand as their names. They are used to display a certain number of text blocks at the beginning or end, and the head is used to display the beginning of the file to the standard output, and tail takes it for granted that it
, Just Like Apache Struts [1] without patching.
If you cannot run the security patch, this will bring about a strategic business problem that far exceeds the salary of the system administrator. Here there are some simple ways to get rid of Linux servers in the hands of system administrators. It is easy to imagine that only new users will make these mistakes, but we need to know more.
The following are some famous
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.