,!^ obtains the first parameter from the previous command:# CP Anaconda-ks.cfg Anaconda-ks.cfg.bakAnaconda-ks.cfg# vi-5!^VI anaconda-ks.cfgTo replace a specified parameter with a specific commandIn the following example,!cp:2 searches the command history for a command that begins with CP and gets its second parameter:# CP ~/longname.txt/really/a/very/long/path/lo
The installation of Linux for personal use is not very difficult, but once in the production environment, the kind of random system, will give the server administrator a great deal of trouble, there needs to be a certain customization of the production system, customization depends on the company's computer type, The company's computers are often a type of a model. Customization is convenient here, the partition is set up, so that you can deploy a lar
.png "title=" Grep18.png "alt=" Cd602ab58cbb51bf42facc80bc5c5332.png-wh_ "/>A * Access file name as a wildcard | "A *" ' A * ' is caused by a regular.650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/21/6a7de1e816573ecdbecfec628d221565.png-wh_500x0-wm_3 -wmp_4-s_2181566777.png "title=" Grep19.png "alt=" 6a7de1e816573ecdbecfec628d221565.png-wh_ "/>650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/21/0ef11a836207bdb6fc9023a99a3bb77e.png-wh_500x0-wm_3 -wmp_4-s_2763164923.png "ti
Tags: linux command bash linux command line file name PAC space append different row15 Examples of mastering the Linux command line historyWhen you use Linux command lines frequently, using history effectively can increase productivity. In fact, once you have the following 15 examples, you will find it more interesting
Install.log.syslog -A = =-pdr -P = = Property not changed -r = = Recursive1.6Section6Questions go to the/root directory and delete the oldboy.txt file. Go to the directory first [Email protected] ~]# cd/root/ [[email protected] ~]# ls Anaconda-ks.cfg Install.log Oldboy.txt Find Install.log.syslog Test.txt use the RM command to delete, prompt for deletion, enter y return to delete [Email protected] ~]# RM oldboy.txt Rm:remove regular file ' Oldboy.tx
Linux services)It is important for Linux users. Disabling unnecessary services can make Linux run more efficiently, but not all Linux services can be disabled. After installing centos Linux today, we found that many services were started when
bzImage
Make modules
Make modules_install
Make install
Before running the new kernel, check the content of/boot/grub. conf. The following configuration can be used as a reference.
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/
Linux File Management, winscpLinux directory structure:
/Root partition linux File System start point
/Bin commands of common users, which can be used by common users
/Commands used by the sbin administrator, which can only be used by the Administrator
/Home the home Directory of a common user
/Root administrator's home directory
/Boot linux boot files, kernel,
(compressedfilenames) Rpmlib (filedigests) Rpmlib (payloadfileshaveprefix) Rpmlib (PAYLOADISXZ) [Email protected] ~]#(6). The query system specifies which package the file belongs to.Command syntax:RPM-QF [file name]Example: Querying the/usr/local/bin/sqldeveloper file belongs to that package.[Email protected] ~]# Rpm-qf/usr/local/bin/sqldeveloperSqldeveloper-4.0.1.14.48-1.noarch[Email protected] ~]#When specifying a file, you must specify the full path to the file (for example,/usr/local/bin/s
Linux-(2) Basic file operations in Linux, linux-linux
In linux, everything is files, directories are files, and hardware is files. Therefore, basic file operations are especially important.
1. List the contents of the directory:
Ls
Parameters:
-A: displays all files (includ
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 commands: Type CDWhich find the locatio
-bit system installs only 64-bit packages by default. To avoid this problem, in a 64-bit system, install both 64-bit packages and 32-bit compatibility packs. CentOS and the relationship from Red Hat Enterprise Linux 6 Don't need me to say it, so I feel this answer is more reliable, try it quickly. After installing yum install libstdc++.i686, I found only one error left. Libgcc_s.so.1 is needed by mysql-server-5.1.73-1.glibc23.i386 Download this libgcc
$ install_dir/RedHat/RPMS
# Rebuild the hard disk lists
/Usr/lib/anaconda-runtime/genhdlist $ {install_dir}
Freshen. sh calls the do-links.sh and get_update.sh to set the source, destination (omitted from the source RPM package; hard link used to set the target RPM), and retrieve updates, respectively.
Listing 2. do-links.sh
#! /Bin/sh
Src = $1
Dest = $2
# For file in $ src/*; do
For file in 'Find $ src-name *. rpm-! -Name *. src. rpm-print
[Production Process of centos4.3-based Linux release]
Http://www.chinaunix.net Author: thatday published on: 13:43:53
[Comment] [view the original article] [Linux discussion board] [close]
[Color = Green] [size = 4] I 've studied things. Recently, many people on the Internet are struggling to make their own releases, so I will share my note
Later, the gcc and g ++ versions are 4.9 by default, and can be queried through gcc -- version.
Step 3: Compile caffe
Download caffe source code on github, web site https://github.com/BVLC/caffe
Download the package and extract it to the main folder directory.
Cd caffe
Cp Makefile. config. example Makefile. config
Open Makefile. config and modify CPU_ONLY = 1. Delete the # sign.
Save and exit.
Make-j8 # (number of CPU threads you call after j)
Make test
Make runtest
If no error is reported, the
Unattended installation of the CentOS systemInstallation Order:1. Install NFS service for Linux operating system2. Installing the TFTP service to provide PXE boot files3. Install the DHCP service to provide IP addresses and other information4. configuration Kickstart, for automatic answer installation, general operating system installation complete, in the ~ directory has anaconda-ks.cfg5. PXE boot for new
Linux System Automation Installation Basicsinstallation programCentOS System InstallationSystem Startup process:Bootloader-->kernel (INITRAMFS)-->rootfs-->/sbin/initNote: The installation process is different from the files during the startup processAnacondaSystem installation ProgramTui: A text window based on the graphics library cursesGUI: Graphics windowSetup startup proceduresMBR:boot.catStage2:isolinux/isolinux.binConfiguration file: Isolinux/is
1. LILO Security Settings
Vi/etc/lilo. conf. anaconda // modify the LILO file ==================================== ==================
......
Restricted // join this line
Password = 111111 // Add this line and set the password to 111111
......
========================================================== ==========
Chmod 600/etc/lilo. conf. anaconda // set as ROOT permission to read
/Sbin/lilo-v // update 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.