Let's face the reality: bad habits are hard to change. However, the habits you are already familiar with may be more difficult to overcome. Sometimes, you may have to review some things. I didn't expect it to do this! . In MichaelStutz's "10 habits
The 20 good habits to be used in Unix are:
1) create a directory tree in a single command.
2) change the path. Do not move the archive.
3) combine commands with control operators.
4) exercise caution when referencing variables.
5) Use escape
Build LINUX [LFS] And linuxlfs from scratch
"LINUX is the example" has a chapter dedicated to introducing the Linux build. The process is detailed and interesting. A brief summary of this information
LFS
This site provides detailed steps to build a
This series comes from "Linux 101 hacks", the author also wrote other 101 hacks tutorials, read a few chapters, think skills are also good, very practical, do a summary collection.CdpathSet the base directorypwd/home/ramesh[[email protected]-db ~]#
#!/bin/bash#读取文件内容到变量中
Filecontent= ' Cat ~/file.txt ' is the TAB key on thatEcho $filecontent#取得文件内容的每一行
For Fileline in $filecontentTodoEcho $filelineDone#写内容到文件中
echo $filecontent >> test.txt
Bash built-in UNIX command
.: Executes the
1. Enable the FreeBSD terminal to support color
Ls-G will show the colorCsh in the. cshrc file, add: alias ls = "ls-G"Sh in the. profile file, add: alias ls = "ls-G"
2. Change the User Login Shell
By default, SH is used for Logon. Sh does not
In the previous section, we described how to retrieve all the available commands in the current shell and PowerShell, and for the specified command to view their syntax information, you can get help information for the specified command, including
1. For I in 'ls *. mp3'
Common Mistakes:
for i in `ls *.mp3`; do # Wrong!
Why is it wrong? Because the for... in statement is segmented by space, the file name containing space is split into multiple words. If you encounter 01-Don't eat the
The path to LINUX explorationThe path to LINUX discovery table of Contents
1 Preface
2 configuration
2.1 Vim
2.2 Emacs
2.3 Input Method Configuration
2.4 Bash
2.5 Ag and Percol
2.6 git
2.7
The Bourne shell
when Unix was first born, it had a very basic shell written by Ken Thompson, one of the creators of UNIX. the Bourne shell was written by Steve Bourne in 1979 as a Scriptable Unix shell. all other shells have a prefix to qualify
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.