EDIT mode to GENERAL mode: press ESC General mode: operate file :q! :force to close the file but not save(file has been modified) :wq! :force to save and close the file :q : close the file but not save(file hasn't been modified) :wq : save and…
When you are using Linux command line frequently, using the history effectively can be a major productivity boost. In fact, once you have mastered the 15 examples that I’ve provided here, you’ll find using command line more enjoyable and fun. 1. Disp…
Linux 下 Vi 配置文件 .vimrc 文件 配置 vim 的方法是在用户主目录下建立个.vimrc文件,我一般使用root帐户,所以就在/root/下建立一个.vimrc文件:vi /root/.vimrc,以下是我的配置,直接复制粘贴进去即可. 用户可以根据需求添加功能, 关于 set 的使用方法可以在 vim 的命令状态下输入:set help 获取帮助. ××××××××××××××××××××"语法高亮syntax on"显示行号set nu "修改默认注释颜…
Linux启动vi编辑器时提示E325: ATTENTION解决方案 Vi编辑器是Linux的文本编辑器,在Linux系统的运用非常广泛,不少朋友在打开Vi编辑器的时候提示E325: ATTENTION错误,遇到这种情况该怎么办吗? 下面小编就给大家介绍下Linux打开Vi编辑器时提示E325:ATTENTION的解决方法: 当打开Vi编辑器时出现以下的提示时不要着急 E325: ATTENTION Found a swap file by the name “/etc/.profile.swp…
Linux 中 Vi 编辑器的简单操作 Vi 编辑器一共有3种模式:命名模式(默认),尾行模式,编辑模式.3种模式彼此需要切换. 一.进入 Vi 编辑器的的命令 vi filename //打开或新建文件,并将光标置于第一行首 vi +n filename //打开文件,并将光标置于第n行首 vi + filename //打开文件,并将光标置于最后一行首 vi +/pattern filename //打开文件,并将光标置于第一个与 pattern 匹配处 vi -r fil…
<The Linux Command Line> 读书笔记02 关于命令的命令 命令的四种类型 type type—Indicate how a command name is interpreted. type命令:展示命令的类型. which which—Display which executable program will be executed. which命令:展示可执行命令的位置. 因为可执行命令有可能会有多个版本,所以有必要根据位置来判断究竟是哪个. which仅对可执行程序…
<The Linux Command Line> 读书笔记01 基本命令介绍 1. What is the Shell? The Shell is a program that takes keyboard commands and passes them to the operating system to carry out. 提示符 $被称作shell prompt,它表明shell准备好接收输入. 通常是包含了你的用户名和机器名(username@machinename),之后是当前的…
Most of this note comes from the Beginning the Linux Command Line, Second Edition by Sander van Vugt The only reason why many administrators are using a graphical interface on Linux, is because it allows them to run many terminal windows simultaneous…
Linux Command Line 解析 0 处理模型 Linux kernel的启动包括很多组件的初始化和相关配置,这些配置参数一般是通过command line进行配置的.在进行后续分析之前,先来理解一下command line的处理模型: 要处理的对象是一个字符串,其中包含了各种配置信息,通常各个配置之间通过空格进行分离,每个配置的表达形式是如:param=value1,value2 或者很简单就是一个rw. 那么kernel就需要提供对这些参数进行处理的处理函数列表.根据参数的作用以及…
I passionately enjoy working with commands as they offer more control over a Linux system than GUIs(Graphical User Interfaces) applications, therefore am always on the look out to discover or figure out interesting ways and ideas to make Linux so eas…
Notes on The Linux Command Line (by W. E. Shotts Jr.) edited by Gopher 感觉博客园是不是搞了什么CSS在里头--在博客园显示效果挺蛋疼的...这本书相当棒,建议一读 File, file systems and commands ls -a(all) -d(directory) -h(human-readable) less (show file content) FHS /bin: Contains binaries (pr…
Prerequisite: Linux Command Line(I): Beginner ================================ File I/O $ cat > a.txt #create a file 'a.txt' and appends things into it Type random stuff... # press Ctrl+d to exit editting $ cat a.txt Type random stuff... $ cat > a.t…
Linux command stty reference: https://blog.csdn.net/lqxandroid2012/article/details/78929506 [Purpose] Learning linux command stty for get/set serial uart speed [Eevironment] Ubuntu 16.04 terminal [Procdeure] example get uart…
Linux command useradd [Purpose] Learning linux command useradd to create a new user or update default new user information [Eevironment] Ubuntu 16.04 terminal [Procdeure] Source code: # crate new user useradd -s '/bin/bash' -…
Linux command mktemp [Purpose] Learning linux command mktemp to create a temporary file or directory [Eevironment] Ubuntu 16.04 terminal [Procdeure] Source code: $ mktemp /tmp/tmp.L8mHFWSBjH…