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:
/include/netinet. Before compilation, ensure that the PATH variable contains/usr/include.
Use the following command to compile lnsniffer:
?? $ Cc linsniffer. c-o linsniffer
To run linsniffer, run the following command:
?? $ Linsniffer
After the startup, linsniffer will create an empty file: tcp. log to store the sniffing result.
In the test, I created a user named hapless with the password "unaware. Then, use this user to log on to the Linux server and perform some common user operations.
Split the rectangle
Time limit:2 seconds
Memory limit:32768 KB
Alice comes up with a new game and wants to play with Bob.
There is one rectangle on the paper initially, we define its lower-left corner's coordinate is (XL, yl) and upper-right corner's coordinate is (XR, yr ).
Bob has executed the step as description below n times:
Bob shoshould select one empty rectangle. if the rectangle is the initial one or is
cobbler对象组, this process is time consuming [[email protected] ~]# Cobbler distro List # View the corresponding distribution centos-7.2-x86_64The image is automatically imported into the/var/www/cobbler/ks_mirror, followed by HTTP to obtain the installation source;By default, cobbler also generates a minimized installed kickstart file, which is/VAR/LIB/COBBLER/KICKSTARTS/SAMPLE_END.KS by default. If we want to customize the kickstart file, you can do the following:[[email protected] ~]# CP ce
). In the future, you do not need to enter the complete PATH in the command line, just enterMatlabYou can.
Maintain old operation habits
For example, in SuSE, the start script is placed in/Etc/init. dDirectory, while in the release of RedHat/Etc/init. d/rc. dDirectory. To avoid the problem that the administrator cannot find the location because the system switches from SuSE to RedHat, we can create a symbolic link./Etc/init. dPoint it/Etc/init. d/rc. dYou can. In fact, the RedHat release also
LINUX File security and permissions when you create a file, the system saves all information about the file, including :? File Location .? File type .? File length .? Which User owns the file and which user can access the file .? I node .? File modification time .? File Permission. Let's use the ls-l command to see a typical file: root @ ubuntu :~ /Resource/mini2440/file-system # ls-ltotal 11488drwxr-xr-x 33 root 4096 2013-04-17 busybox-1.17.3-rwxrw-r
The relevant modules and functions that can execute shell commands are:
Os.system
os.spawn*
os.popen*--Waste
popen2.*--Waste
commands.*-Discarded, removed in 3.x
The functions of the relevant modules and functions for executing shell commands are implemented in the Subprocess module and provide richer functionalityPagerParent process waits for child process to completeReturn exit information (ReturnCode, equivalent to Linux exit code)Executes a command, returns a st
In the Linux system,/on behalf of the root directory, there are many folders under the root directory, below to understand together
# CD/# Ls-alTotal 448Drwxr-xr-x 2 root root 4096 may 04:02 binDrwxr-xr-x 2 root 4096 Sep 2013 SbinDrwxr-xr-x root root 4096 Feb 04:02 Lib
Drwxr-xr-x root root 4096 June 10:55 HomeDrwxr-x
:--reference=directory or file>Use the specified directory/file as a reference and set the operating file/directory to the same owner and group as the reference file/directory--from=Current User: Current group> Changes are made only if the current user and group are the same as the specified user and group--help display Help information--version display version information 4. Use instance: Instance 1: Change owner and Group command: chown mail:mail log2012.log output: Copy code [[emailprotected]
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.