Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use BASH in linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Linux how to use BASH, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

The function of Bash shell

Command editing capability (history):

Just press the up and down keys on the command line to find the first / last input instruction. where are so many instructions recorded? .bash _ history in your home folder.

Command and file completion: (benefits of [tab] button)

Command alias setting function: (alias)

Alias lm='ls-al'

Programmatic script: (shell scripts)

Query whether the instruction is a built-in command for Bash shell: type

Example 1: check whether the ls instruction is built into bash?

Variable function of [dmtsai@study ~] $type lsShell

Variable access and setting: echo, variable setting rules, unset

Echo $PATH

Set the variable:

[dmtsai@study ~] $echo ${myname}

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report