situations, Vista--Tour Shanxi villageSystem: Ubuntu 16.04LTS1\ official website Download mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz2\ set up a workgroup:$su#groupadd MySQL#useradd-R-G MySQL MySQL3\ Creating a Directory#mkdir/usr/local/mysql#mkdir/usr/local/mysql/data4\ unzip the mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz and copy to/usr/local/mysql#tar-ZXVF mysql-5.7.18-linux-glibc2.5-x86_64.tar.gz#cp-R/home/jieyamulu/mysql-5.7.18-linux-glibc2.5-x86_64/*/usr/local/mysql5\ Modify the MySQL user's
Cause: the command fdisk is not in your command search path.
Solution 1: Add fdisk to your command search path
The method is as follows:
First, check your current command search path:
[Root @ localhost sbin] # echo $ PATH/Usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/X11R6/bin: /home/vincent/binCheck the path of the fdisk command.
[Root @ localhost home] # whereis fdiskFdisk:/sbin/fdisk/usr/share/man/man8/fdisk.8.gz
We can see that the fdisk command is no longer in the current command
file. After Entering y, the system will delete the file. If you do not want to delete the file, the data is n. Www.2cto.com instance 2: forcibly delete the file. Command: rm-f log1.log output: [root @ localhost test1] # ll total 4-rw-r -- r -- 1 root 23 10-26 log1.log [root @ localhost test1] # rm-f log1.log [root @ localhost test1] # ll total 0 [root @ localhost test1] # instance 3: delete any. log File. Before deletion, run the "rm-I *" command to confirm the deletion *. log output: [root @ l
before deletingCommand:Rm-i *.logOutput:[email protected] test1]# LLTotal 8-rw-r--r--1 root root one 10-26 14:45 log1.log-rw-r--r--1 root root 10-26 14:45 Log2.log[Email protected] test1]# rm-i *.logRM: Do you want to delete the generic file "Log1.log"? YRM: Do you want to delete the generic file "Log2.log"? Y[email protected] test1]# LLTotal 0[[email protected] test1]#Example four: Delete all the files in the Test1 subdirectory and subdirectoriesCommand:Rm-r test1Output:[email protected] test]
: The installation location of the third-party application;/SRV: Data used by services running on the system;/tmp: temporary file storage location;/usr:universal GKFX, read-only data;/var:variable Data files/proc: A virtual file system for outputting kernel-related process information;/sys: A virtual file system for outputting information about hardware devices on the current system;/selinux:security the storage location of information such as enhanced linux,selinux related security policy;[[ema
index node itself and other connections, only if the last connection is deleted, the file's data block and directory connection will be released. That is, the condition that the file is actually deleted is that all the hard connection files associated with it are deleted. (Note: Hard links cannot be created across partitions)Experiment: [[email protected] ~]# Ln/etc/yum.con (2) Blue mark for created hard links-rw-r--r--. 1 root root 0 Jul 05:47 2016-07-30.txt-RW-------. 1 root root 1389 Jul 15:
Due to work needs, it took some time to study the two built-in special commands of eval and exec. Because not many are used, it is a bit obscure ..
1. Eval
This command is a built-in command in bashshell, which is a little more difficult than other commands. The content following the command is considered as a parameter, but the parameters are scanned twice. The first scan replaces the variables in the parameters, and the second scanThe second scan combines the following parameters as a shell c
Owner ID field of the process accessing the file, the process does not have permission to change the context descriptor of a file, either before or after the change.For example, a process that has a rjc:user_r:user_t descriptor can change the descriptor of a file that has a rjc:object_r:user_games_rw_t descriptor to rjc:object_r:user_games_ro_t, However, it does not have permission to change any of the properties of a file that has a john:object_r:user_games_rw_t descriptor.To view the context
deletingCommand:Rm-i *.logOutput:[email protected] test1]# LLTotal 8-rw-r--r--1 root root one 10-26 14:45 log1.log-rw-r--r--1 root root 10-26 14:45 Log2.log[Email protected] test1]# rm-i *.logRM: Do you want to delete the generic file "Log1.log"? YRM: Do you want to delete the generic file "Log2.log"? Y[email protected] test1]# LLTotal 0[[email protected] test1]#Example four: Delete all the files in the Test1 subdirectory and subdirectoriesCommand:Rm-r test1Output:[email protected] test]# LLTot
deletingCommand:Rm-i *.logOutput:[email protected] test1]# LLTotal 8-rw-r--r--1 root root one 10-26 14:45 log1.log-rw-r--r--1 root root 10-26 14:45 Log2.log[Email protected] test1]# rm-i *.logRM: Do you want to delete the generic file "Log1.log"? YRM: Do you want to delete the generic file "Log2.log"? Y[email protected] test1]# LLTotal 0[[email protected] test1]#Example four: Delete all the files in the Test1 subdirectory and subdirectoriesCommand:Rm-r test1Output:[email protected] test]# LLTot
deletingCommand:Rm-i *.logOutput:[email protected] test1]# LLTotal 8-rw-r--r--1 root root one 10-26 14:45 log1.log-rw-r--r--1 root root 10-26 14:45 Log2.log[Email protected] test1]# rm-i *.logRM: Do you want to delete the generic file "Log1.log"? YRM: Do you want to delete the generic file "Log2.log"? Y[email protected] test1]# LLTotal 0[[email protected] test1]#Example four: Delete all the files in the Test1 subdirectory and subdirectoriesCommand:Rm-r test1Output:[email protected] test]# LLTot
/.oracle/var/tmp/.oracle11gMv/var/tmp/.oracle10g/var/tmp/.oracle+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++are backed up in advance-r-xr-xr-x 1 root root 2436 Oct 6 09:47/etc/init.d/init.crs-r-xr-xr-x 1 root root 5538 Oct 6 09:47/ETC/INIT.D/INIT.CRSD-r-x
you want to take effect immediately, you can execute the following statement: "$ source. Bash_profile (This is the file name.) When the environment variable changes, it takes effect the next time the user logs on.3. Soft ConnectionIn addition, many small partners may have discovered that some files are accessed directly on Mac without setting environment variables. What is this for? The answer is to use a soft connection.3.1 Viewing the Load fileYou can use the Cat command to view the paths fil
stack m_preleasepoolstack in ccpoolmanager. The pool stack stores one pool, the object we add is put into the current pool.
When
Boolappdelegate: After the applicationdidfinishlaunching () function is successfully completed, it enters the main loop. Anyone who has learned VC knows that if you want to prevent the program from exiting, a main loop will inevitably exist. Function
[[Ccdirectorcallershareddirectorcaller] startmainloop]; this loop is started and can be seen in startmainloop.
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.