In linux, after an error occurs in modifying the profile file, all commands cannot be used. How can this problem be solved ?, LinuxprofileScenario
Today, we installed linux for the second time, and there were more new ones.
I was supposed to configure the java environment variable in/etc/profile. I got it wrong: enter it as;, and then all the
When you configure MySQL, you make a global variable, with fewer "$" symbols, which causes all commands to be executed.At first I couldn't figure out why all the orders couldn't be executed.650) this.width=650; "title=" Capture 1. PNG "alt=" wkiom1hedpbgm7dvaabdut-iyuc293.png-wh_50 "src=" http://s5.51cto.com/wyfs02/M00/8B/FB/ Wkiom1hedpbgm7dvaabdut-iyuc293.png-wh
View all configuration commands for Linux systems1. Check the serial number of the motherboard:Dmidecode | Grep-i ' Serial number '2. View CPU Information:Cat/proc/cpuinfoDMESG | Grep-i ' CPU 'DMIDECODE-T processor3. View memory Information:Cat/proc/meminfoFree-mVmstat5. Check the network card information:DMESG | Grep-i ' ETH 'cat/etc/sysconfig/hwconf | Grep-i ' ETH 'Ethtool-i eth07. View USB Device Informa
Reference from Linux command DaquanTo see if the shell command is a shell built-in command, use the type to determine:
$ Type cdCD is a shell builtin$ Type pingPing is/bin/ping
All built-in commands are as follows:ShThe shell command interpreter trap specifies the action to be taken after receiving the signal let's simple calculator seq to specify the increment to print the number
Tags: des style http color using OSTurn from:querying the underlying tables for all references in a view using SQL commandsUsing SQL commands to query all referenced base tables in a view before having written how to exploit all referenced tables in SQL query view this method does not identify
the intersection, leaving the other rowsSort File1 File2 | Uniq-d Remove the intersection of two files (leaving only files that exist in two files)Comm-1 file1 file2 Compare the contents of two files delete only what ' file1 ' containsComm-2 file1 file2 Compare the contents of two files delete only what ' file2 ' containscomm-3 file1 file2 Compare the contents of two files delete only two files that are common to each otherReturn Top Index ^Character settings and file format conversionsDos2unix
Findstr can do the job.FINDSTR/S/I "string" * *The above command indicates that the string is found in all files in the current directory and all subdirectories of the current directory.*. * represents all types of files./s represents the current directory and all subdirectories/I means case insensitiveYou can use this
:20662980kbcommitted_as:4767104kbvmalloctotal:34359738367kbvmallocused:264924Kbvmallocchunk:34359473015kbhugepages_total:0Hugepages_free:0HUGEPAGES_RSVD:0hugepagesize:2048Kb(4) Mpstat Display CPU status,You can display the average status of all processors, or you can display statistics A: -[]$ Mpstat-P Alllinux2.6. --308. El5 (A04.api.cms.3g.b28.youku) August 23, 2014 12:38 01 sec CPU%user%nice%sys%iowait%irq%soft%steal%idle intr/S12 38 minutes, 01 se
Label:MyISAM to InnoDB ALTER TABLE boblog_blogs Engine=innodb;ALTER TABLE Boblog_calendar Engine=innodb; Max connections Show global variables like "%max_con%";Set global max_connections xxx; GRANT All PrivilegesGRANT all privileges on * * to ' root ' @ '% ' identified by ' sa123 ' with GRANT OPTION;GRANT all privileges on * * to ' myuser ' @ ' percent ' identi
Groups viewing the members of the currently logged on user groupGroups Gliethttp View the group that the Gliethttp user is in, and the members in the groupWHOAMI View the currently logged in user nameInformation about groups within the system is placed in the/etc/group file, and the user's information is placed in the/etc/passwd file. Now I want to see all the users in a group named "Plants". First, you know the ID of the group, the GID. Use the comma
Examples are as follows:The third command is to replace all "Arm-none-linux-gnueabi" in the code in the current directory with "Arm-linux"Sed-i ' s/arm-none-linux-gnueabi-g++/arm-linux-g++\-o2\-i\$\ (inc\) \-i\$\ (incsys\) \-static/g ' grep arm-none-linux-gnueabi-g++. -rl ' sed-i ' s/arm-none-linux-gnueabi-gcc/arm-linux-gcc\-static/g ' grep arm-none-linux-gnueabi-gcc. -rl ' sed-i ' s/arm-none-linux-gnueabi/arm-linux/g ' grep arm-none-linux-gnueabi. -r
Problems that arise:+ rsync-avzp/mnt/workspace/df-admin/[Email protected]:/home/deploy/deep_fashion_targets/web/tmp/ Jenkins5788277461826608.sh:line 2:rsync:command not foundbuild step ' Execute shell ' marked build as Failurefinished:fa IlureBuild is execute shell Echo $PATH find the normal PATH without output:/var/lib/jenkins/tools/hudson.model.jdk/jdk1. 8/bin:/var/lib/jenkins/tools/hudson.model.jdk/jdk1. 8/bin:/usr/local/sbin:/usr/sbin:/usr/java/jdk1. 8 // bin:/usr/local/apache-maven-3.5.
recorded, it is possible to enter the log records directory, file deletion or file modification, it is necessary to upload these files to the Log collection server in a timely manner, preferably a background real-time monitoring process, the directory under the file changes, Directly trigger the synchronization operation, the file timely synchronization to the Log collection server, the network also has all the records in real-time through the log pr
create/etc/passwd from/etc/shadow and/etc/passwd, and then delete the/etc/shadow file;Finger Note: View the user Information toolID Note: View the user's UID, GID, and user group to which they belongCHFN Note: Change user Information toolSU Note: User Switching toolsudo note: sudo is executed by another user (execute a command as another user), SU is used to switch users, and then to complete the corresponding task by switching to the user, but sudo can execute
Tags: ICA view CPU--top CPU release ASE BSP 4.01. View Cpu:top2. View current Linux version: Name-aTo view the currently running kernel version: Cat/pro/versionView release information: Cat/etc/issueView all information above: lsb_release-a3. View the system disk under Linux: df-lLinux common Commands (iii) View information about all aspects of the current comput
Reprinted from 70312034(1) Input command(2) execution effect (because it has been updated so that all packages are up-to-date, otherwise the number of packages that need to be updated is displayed)(3) Input command(4) Performance: None (due to the update, the command line during execution to ask whether to download y/n, enter Y to confirm the download, the system will download the package and configuration, waiting time depending on the need to instal
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.