-ks.cfgIn the following example, the parameter "!^" immediately following the VI passes the first argument of the previous command to the current command.#cp anaconda-ks.cfg Anaconda-ks.cfg.bakAnaconda-ks.cfg# VI!^VI anaconda-ks.cfg13. Replace specific parameters for specific commandsIn the following example,!cp:2 looks for a command that begins with CP in the co
following the VI passes the first argument of the previous command to the current command.#cp anaconda-ks.cfg Anaconda-ks.cfg.bakAnaconda-ks.cfg# VI!^VI anaconda-ks.cfg13. Replace specific parameters for specific commandsIn the following example,!cp:2 looks for a command that begins with CP in the command history and takes its second argument as a parameter of t
accessed normally, and the location of the Yum repository can be in: local CD, Local hard disk, FTP server, HTTP server, NFS server, CIFS server 在anaconda界面按"ESC"键以进行手动选择安装方式: boot: linux askmethodAnaconda's working process:Pre-installation phase: Installation environment and planned configuration1. The type of language used in the installation process;2. keyboard layout type;3. Targe
History commands are frequently used in linux system management. it is a command with high usage. This topic describes the 15 Usage examples of the history Command.
1. use HISTTIMEFORMAT to display the timestampAfter you execute the history command from the command line, only the serial number of the executed command and the command itself are displayed. To view the timestamp of the command history, run the following command:
Copy codeThe code is as f
from the history.#export Histcontrol=ignorespace# ls–ltr# pwd# Service HTTPD Stop[Note: Add a space in front of the service to ignore it in the command history]# History | Tail-3Ls–ltrPwdHistory | Tail-311. Clear all History commands using the C optionSometimes you may want to erase previous historical commands. And you want to keep history working:#history –c12. Replace the contents of the command historyWhen you search for history commands, you may want to execute a command that has the same
also a special file type. Its main purpose is to solve errors caused by simultaneous access to a file by multiple programs. FIFO is the abbreviation of first-in-first-out. The first attribute is [p].Link fileSimilar to shortcuts in Windows. The first attribute is [l], for example, [lrwxrwxrwx]2. Three Methods for viewing file types
①Ls-l/ls-ld or ll [ls-l-View File ls-ld-view path ll -- same as ls-l]
Ll anaconda-ks.cfg // see the first character-rw -
Linux Command Line of history, historylinux
1. Use HISTTIMEFORMAT to display the timestampAfter you execute the history command from the command line, only the serial number of the executed command and the command itself are displayed. To view the timestamp of the command history, run the following command:
# Export HISTTIMEFORMAT = '% F % t'# History | more1 2008-08-05 19:02:39 service network restart2 19:02:39 exit3 2008-08-05 19:02:39 id4 2008-08-0
Tags: directory file structure LS aliasdirectory Structure of Linux systemsroot directory/vertex, all other directories are under the root. The directories and subdirectories below the root are a hierarchical tree structure, much like an upside down tree. The directory structure and disk partitioning of Linux are separate.root directory
/bin the command that stores the binary, which is generally us
stepModify the default file, copied from the CD file has a lot of content, not much we do not need, refer to the following content on it#就是刚才复制到菜单文件default menu.c32#超时时间,就是菜单倒计时timeout 600display boot.msg# 启动菜单的具体配置# menu label 用来指定菜单名称,可以自定义,^符号用来确定光标位置,# 同时其后的字母也是调到对应菜单的快捷键# kernel指定内核文件路径,由于我们放在了文件夹中所以路径是7/vmlinuz# 指定initrd的路径,以及ks应答文件文件的路径# 务必确保应答文件可以访问label linux menu label ^Install CentOS 7 kernel 7/vmlinuz append initrd=7/initrd.img ks=http
Under Linux, many of our operations are implemented by commands, and we'll explain the use of commands under Linux in the next step. The first thing to do is to use the command first to know his format:The syntax format for linux commands is command options arguments, where options and parameters can be omitted. There are a variety of commands for
When operating on Linux terminals, we all know that using the arrow keys can find commands previously executed. In fact, this is the simplest history.
In fact, commands executed on the terminal are recorded if history is enabled.
If you often use Linux Command lines, using the history (History) command can effectively improve your efficiency. This article describes the 15 Use Cases of the History command.
Tags: SEL init MFS Set Management restart Equal tab commentFirst, log management
LOG: A file that records the current system, user, and program's working status1. Directory Location(1)系统、用户、RPM(YUM)安装:/var/log/目录下(2)源码安装:安装目录下,log目录(3)anaconda(响应程序,用于运行图形化安装向导),安装过程产生日志/var/log/anaconda.*Anaconda shortcut keys: ctrl+alt+f3 (view network conditions during in
be selected by default if they are not well understood.
III. compilation process
Compile with the following command. it may take more than an hour to complete :-)
Make 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 thi
target support" under "Full NAT" and "REDIRECT target-support" into Module 6. Compile and install kernel # make clean//clear the target file under kernel compilation # make Bzimage//Generate kernel file # make modules//Encode module # make Modules_install// Install module # make install//install 7. Edit boot menu Options Grub file will change default=1 to default=0# vim/etc/grub.conf # grub.conf generated by Anaconda # # Note so you don't hav E to re
First, using the OS moduleIn [1]:ImportOs#Import OS moduleIn [2]: Os.system ('ls') Anaconda-Ks.cfgepel-release-7-5. Noarch.rpmipython-4.1.2Ipython-4.1.2. Tar.gzpip-8.1.2Pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a.gzout[2]: 0In [3]: A=os.system ('ls')##得到的是执行的命令的返回值, not the result of executionAnaconda-Ks.cfgepel-release-7-5. Noarch.rpmipython-4.1.2Ipython-4.1.2. Tar.gzpip-8.1.2Pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a.gzIn [4]: A
(the index inode is referred to as "Inode") is a special concept in Linux, and two text with the same index node number is essentially the same file (except for the file name).[[Email protected] ~] # 5111817-RW-------. 1 root root 1497 13:34 anaconda-ks.cfg5111810-rw-r--r--. 1 root root 51437-13:34 Install.lo GHorizontal Output File list:[[Email protected] ~] # ls-manaconda-ks.cfg, Install.log, Install.l
/y_n(5) Execution status result of the commandSuccessful execution: When the previous command succeeds, execute echo $ again? View execution status; 0 indicates success.Such as:[[email protected] ~]# ls a anaconda-ks.cfg install.log install.log.syslog [[Email PROtected] ~]# echo $? 0Execution failed: When the previous command executed successfully, execute echo $ again? View the execution status; 1-255 indicates a lossDefeat. Such as:[Email protected]
Linux Basic commands-----------------Catalog Section-------------------"PWD" Displays the absolute directory where you are currently located"CD" Switch directoryCD-Show previous working directoryCD ~ Show current user's home directoryCd. Show current directoryCd.. Displays the top level directory of the current directory[[email protected] ~]# cd/usr/[[email protected] usr]# lsbin etc Games include Lib libexec Local my sbin share src tmp[[em
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.