肠胃炎是什么引起的| 11.5是什么星座| 淹死是什么感觉| 冰恋是什么意思| 周杰伦属什么| 早上四五点是什么时辰| ms是什么意思| 去脂体重什么意思| 今年43岁属什么| 月经血量少是什么原因| 为什么脚臭叫香港脚| 油条吃多了有什么危害| 房奴什么意思| 姹紫嫣红是什么意思| 脑部ct挂什么科| 为什么会得炎症| 天天吹空调有什么危害| 中人是什么意思| 不应期是什么| 狗属于什么科| abob是什么药| 舒化奶适合什么人喝| 切除痣挂什么科| 舌头灼热感是什么原因| 嘴臭是什么原因引起的| 胸前骨头疼是什么原因| 吃什么水果对嗓子好| 打呼噜有什么危害| 心脏早搏吃什么药效果好| 舟山念什么| 保家仙是什么| 凝血功能是什么意思| 月亮的肚子指的是什么| 福兮祸兮是什么意思| 吃葡萄干有什么好处| 低血压吃什么好的最快女性| 嬴稷和嬴政什么关系| 红酒是什么味道| 佛龛是什么意思| 乙肝复查检查什么项目| 木瓜和什么不能一起吃| 晚上喝牛奶有什么好处和坏处| 早上口干舌燥是什么原因| 手脚心出汗是什么原因| 五行缺水戴什么| 胎毛什么时候剃最好| 蝙蝠为什么倒挂着睡觉| 眼睛痒用什么滴眼液| 肝腹水是什么症状| 玉屏风治什么病最好| 蚂蚁上树什么意思| 粽子的叶子是什么叶| gala是什么意思| vape是什么意思| 警察是什么编制| 放疗和化疗有什么区别| 拉痢疾是什么症状| 里长是什么官| 儿童超敏c反应蛋白高说明什么| 闭口是什么样子图片| 吃什么药降尿酸快| 脚底板发红是什么原因| 白头发吃什么变黑| 翡翠和玉有什么不同| 吃什么能生精和提高精子质量| 徒孙是什么意思| 牛宝是什么| 纵欲是什么意思| 有始无终是什么生肖| 对别人竖中指是什么意思| 牙齿酸痛什么原因| 大腿麻木是什么原因| 催乳素偏高有什么影响| 多喝水有什么好处| 七月二十是什么星座| 同房干涩什么原因导致的| 成人补锌吃什么药| 三点水真读什么| 四维空间是什么样子| 什么油好| 老是低血糖是什么原因| 肺阴虚吃什么中成药| 无济于事的济是什么意思| 痛风用什么消炎药最好| 1953年属什么生肖| 生理期可以吃什么水果| 脸发红发烫是什么原因| 胃胀胃不舒服吃什么药| lucas是什么意思| 心烦意乱焦躁不安吃什么药| 睾丸痛吃什么消炎药| 陶渊明是什么先生| 化干戈为玉帛是什么意思| 女生的逼长什么样| 冰箱发烫是什么原因| 情绪低落是什么意思| 前列腺钙化斑是什么意思| 减张缝合是什么意思| 菩提子手串有什么好处| 5月24日是什么星座| 99属什么生肖| 金牛座的幸运色是什么| 狗狗拉稀是什么原因| 落英缤纷是什么意思| 狙击蟹吃什么| 2019年什么生肖| 嘴里发咸是什么原因| 风花雪月是什么生肖| 相亲为什么不能拖太久| 你问我爱你有多深是什么歌| 黑色记号笔用什么能擦掉| 2020年属什么| 空调滤芯什么牌子好| 上海有什么玩的| 鼻屎有臭味是什么原因| 松果体囊肿是什么病| 痒是什么原因引起的| 相生相克是什么意思| 摩羯座什么时候| 已故是什么意思| 吃什么药降尿酸快| 淋巴发炎是什么症状| 输血浆主要起什么作用| 流年不利什么意思| 月经先期是什么意思| 首套房有什么优惠政策| 卖是什么意思| esmara是什么品牌| 粿条是什么| 医生停诊是什么意思| 嗜碱性粒细胞偏高是什么原因| 咽峡炎吃什么药| 阳痿早泄吃什么| gravy是什么意思| 邓紫棋和华晨宇什么关系| 市检察长是什么级别| wv是什么意思| 手指关节疼痛看什么科| 北斗是什么| 妥瑞氏症是什么病| 为什么三文鱼可以生吃| 孔明属什么生肖| 包皮与包茎有什么区别| 水泡型脚气用什么药好| 曲苑杂坛为什么停播| 大使是什么行政级别| 生日当天忌穿什么颜色| 血脂高是什么意思| 内分泌科看什么病| prf是什么意思| 散瞳快散和慢散有什么区别| 乳房痛什么原因| 闻字五行属什么| 入伏吃羊肉有什么好处| 吃什么食物增加黑色素| 什么是保健食品| 列巴是什么| 外痔是什么样子的| 深藏不露是什么意思| 甘油三酯偏高说明什么问题| 将军是什么级别| 为什么小鸟站在电线上不会触电| 助听器什么价位| 下海什么意思| 2025年是什么命| 菌丝是什么| 肠易激综合征吃什么中成药| 莲雾是什么| 社区医院属于什么级别| 蚂蚁代表什么风水| 姹什么嫣什么| 上梁不正下梁歪什么意思| 为什么四川总地震| 烂脚丫用什么药最好| 叹服是什么意思| 腿没有劲是什么原因| 斑斓是什么意思| 霍家为什么娶郭晶晶| 什么品牌的笔记本好| no是什么| 重要是什么意思| kim是什么意思| 查肾结石挂什么科| 穴与什么有关| 钻石和锆石有什么区别| 什么是软文| 转氨酶偏高是什么原因| 猫奴是什么意思| 胃疼吃什么止痛药| 血压低有什么症状表现| 粉尘作业时必须佩戴什么口罩| 为什么会得结石| 说话不清楚是什么原因导致的| 为什么会有痣| mm代表什么单位| 乍一看是什么意思| 07年是什么年| 喻字五行属什么| 的近义词是什么| 身体逐渐消瘦是什么原因| 头发干枯毛躁是什么原因| 什么的恐龙| 什么是奶昔| 肠胃炎能吃什么水果| 版图是什么意思| lr是什么| 4月25号什么星座| 什么歌最好听| lca是什么意思| 自述是什么意思| 肺结核传染途径是什么| 乳腺囊实性结节是什么意思| 来月经腰疼是什么原因| 经常喝饮料有什么危害| 膝盖积水是什么原因造成的| 外阴干裂用什么药| 什么蛋不能吃| 过氧化氢弱阳性什么意思| 心脏是什么组织| 红楼梦贾家为什么被抄家| 血小板偏低是什么意思| ca是什么元素| 什么是性压抑| 什么的池水| 大地鱼是什么鱼| 龟苓膏是什么做的| 怀孕了不想要最好的办法是什么| 低烧是什么病的前兆| 77属什么生肖| 沙棘不能和什么一起吃| 七月十四是什么节| 黄鼻涕是什么原因| 花斑癣用什么药膏| 正常人吃叶酸有什么好处| 内分泌科属于什么科| 一躺下就咳嗽是什么原因| 胃肠感冒可以吃什么水果| 什么样的充电宝不能带上飞机| 脖子左侧疼是什么原因| 亚麻是什么面料| 机智如你是什么意思| 肠道门诊看什么病| 208是什么意思| 喜欢闻汽油味是什么原因| 山鬼是什么| 五行缺土戴什么| 为什么插不进去| 磷偏低是什么原因| 梦见鹦鹉是什么征兆| 做春梦是什么意思| 吃什么东西会长胖| 北极熊的毛是什么颜色的| 检查肾挂什么科| 什么是甲状腺结节病| 焱加木念什么| 胃胀呕吐是什么原因| 血压低吃什么最快最有效| 脂肪肝用什么药物治疗| fsa是什么意思| 茔和坟有什么区别| 脑多普勒检查什么| 刷牙出血是什么原因| 疱疹用什么药最好| 什么是紫河车| 百度
Jump to content

摩拜单车联手招商银行 树立行业押金管理典范

From ArchWiki
Rdvdev2 (talk | contribs)
m Link to Catalan translation
Motolly (talk | contribs)
m Motolly moved page Help:Reading to Help:Reading-Guide
(No difference)

Revision as of 13:18, 25 June 2023

Because the vast majority of the ArchWiki contains indications that may need clarification for users new to Arch Linux (or GNU/Linux in general), this rundown of basic procedures was written both to avoid confusion in the assimilation of the articles and to deter repetition in the content itself.

Organization

Most articles on the ArchWiki do not attempt to provide a holistic introduction to a single topic; they are instead written in adherence to the "Don't Repeat Yourself" principle, under the assumption that the user will seek out and read any supporting material that they do not yet understand. Where possible, such supporting material is indicated in the article via special formatting, see #Formatting.

Because of this organization, it may be necessary to examine several related sources in order to fully understand an ArchWiki article. In particular, users who are new to Arch (or GNU/Linux in general) should expect to end up reading a great number of articles even when solving simple problems. It is especially important to study the supporting material before seeking additional help from other users.

Formatting

Regular user or root

Some lines are written like so:

# mkinitcpio -p linux

Others have a different prefix:

$ makepkg -s

The numeral or hash sign (#) indicates that the command needs to be run as root, whereas the dollar sign ($) shows that the command should be run as a regular user.

Note The commands prefixed with # are intended to be executed from a root shell, which can for example be easily accessed with sudo -i. Running sudo command from an unprivileged shell instead of command from a root shell will also work in most cases, with some notable exceptions such as redirection and command substitution, which strictly require a root shell. See also sudo.

A notable exception to watch out for:

# This alias makes ls colorize the listing
alias ls='ls --color=auto'

In this example, the context surrounding the numeral sign communicates that this is not to be run as a command; it should be edited into a file instead. So in this case, the numeral sign denotes a comment. A comment can be explanatory text that will not be interpreted by the associated program. Bash scripts denotation for comments happens to coincide with the root PS1.

After further examination, "give away" signs include the uppercase character following the # sign. Usually, Unix commands are not written this way and most of the time they are short abbreviations instead of full-blown English words (e.g., Copy becomes cp).

Regardless, most articles make this easy to discern by notifying the reader:

Append to ~/path/to/file:

# This alias makes ls colorize the listing
alias ls='ls --color=auto'

Append, add, create, edit

When prompted to append to, add to, create, or edit one or more files, it is implied that you should use one of the following methods.

To create or modify multiline files, it is suggested to use a text editor. For example, using the nano command to edit the file /etc/bash.bashrc is:

# nano /etc/bash.bashrc

To create or overwrite a file from a string, it may be simpler to use output redirection. The following example creates or overwrites the contents of the file /etc/hostname with the text myhostname.

# echo myhostname > /etc/hostname

Output redirection can also be used to append a string to a file. The following example appends the text [custom-repo] to the file /etc/pacman.conf.

# echo "[custom-repo]" >> /etc/pacman.conf

When prompted to create directories, use the mkdir command:

# mkdir /mnt/boot

Make executable

After creating a file, if it is meant to be run as a script (whether manually or called by another program), it needs to be set as executable, for example with:

$ chmod +x script

See chmod. Some applications such as file managers may provide graphical interfaces to do the same.

Source

Some applications, notably command-line shells, use scripts for their configuration: after modifying them, they must be sourced in order for the changes to be applied. In the case of bash, for example, this is done by running (you can also replace source with .):

$ source ~/.bashrc

When the wiki suggests modifying such a configuration script, it will not explicitly remind you to source the file, and only in some cases will it point to this section with a reminder link.

Installation of packages

When an article invites you to install some packages in the conventional way, it will not indicate the detailed instructions to do so; instead, it will simply mention the names of the packages to be installed.

Note Frequently, the install or installed links are used to point to this article section. However, JavaScript has to be enabled for these links to work.

The subsections below give an overview of the generic installation procedures depending on the package type.

Official packages

For packages from the official repositories, you will read something like:

Install the foobar package.

This means that you have to run:

# pacman -S foobar

The pacman article contains detailed explanations to deal with package management in Arch Linux proficiently.

Arch User Repository

For packages from the Arch User Repository (AUR), you will read something like:

Install the foobarAUR package.

This means that in general you have to follow the foobarAUR link, download the PKGBUILD archive, extract it, verify the content and finally run, in the same folder:

$ makepkg -si
Note The base-devel group of packages is required to build packages from the AUR or with the ABS.

The Arch User Repository article contains all the detailed explanations and best practices to deal with AUR packages.

Control of systemd units

When an article invites to start, enable, stop or restart some systemd units (e.g. a service), it will not indicate the detailed instructions to do so, but instead you will read something like:

Start example.service.

This means that you have to run:

# systemctl start example.service

The systemd article contains all the detailed explanations to interact with systemd units in Arch Linux proficiently.

System-wide versus user-specific configuration

It is important to remember that there are two different kinds of configurations on a GNU/Linux system. System-wide configuration affects all users. Since system-wide settings are generally located in the /etc directory, root privileges are required in order to alter them. For example, to apply a Bash setting that affects all users, /etc/bash.bashrc should be modified.

User-specific configuration affects only a single user. Dotfiles are used for user-specific configuration. For example, the file ~/.bashrc is the user-specific configuration file. The idea is that each user can define their own settings, such as aliases, functions and other interactive features like the prompt, without affecting other users' preferences.

Note ~/ and $HOME are shortcuts for the user's home directory, usually /home/username/.

Common shell files

Bash and other Bourne-compatible shells, such as Zsh, also source files depending on whether the shell is a login shell or an interactive shell. See Bash#Configuration files and Zsh#Startup/Shutdown files for details.

Pseudo-variables in code examples

Some code blocks may contain so-called pseudo-variables, which, as the name says, are not actual variables used in the code. Instead they are generic placeholders and have to be manually replaced with system-specific configuration items before the code may be run or parsed. Common shells such as bash and zsh provide tab-completion to auto-complete parameters for common commands such as systemctl.

In the articles that comply with Help:Style/Formatting and punctuation, pseudo-variables are formatted in italics. For example:

  • Enable the dhcpcd@interface_name.service for the network interface identified from the output of the ip link command.

In this case interface_name is used as a pseudo-variable placeholder in a systemd template unit. All systemd template units, identifiable by the @ sign, require a system-specific configuration item as argument. See Systemd#Using units.

  • The command dd if=data_source of=/dev/sdX bs=sector_size count=sector_number seek=partitions_start_sector can be run as root to wipe a partition with the specific parameters.

In this case the pseudo-variables are used to describe the parameters that must be substituted for them. Details on how to gather them are elaborated on in the section Securely wipe disk#Calculate blocks to wipe manually, which features the command.

This article or section needs expansion.

Reason: Mention other examples, ideally from other device categories (e.g. storage), with links to background articles. The examples are meant to avoid duplicating existing explanations in other articles. (Discuss in Help talk:Reading)

In case of file examples, pasting pseudo-variables in real configuration files might break the programs that use them.

Ellipses

In most cases, ellipses (...) are not part of the actual file content or code output, and instead represent omitted or optional text that is not relevant for the discussed subject.

For example HOOKS="... encrypt ... filesystems ..." or:

/etc/X11/xorg.conf.d/50-synaptics.conf
Section "InputClass"
    ...
    Option      "CircularScrolling"          "on"
    Option      "CircScrollTrigger"          "0"
    ...
EndSection

Be aware though that, in a few instances, ellipses may be a meaningful part of the code syntax: attentive users will be able to easily recognize these cases by the context.

孩子干咳吃什么药效果好 翡翠的五行属性是什么 天赦日是什么意思 肋骨骨折吃什么食物好得快 浸洗是什么意思
李子什么人不能吃 90年出生属什么生肖 肌酸激酶是什么 西安香烟有什么牌子 头孢属于什么类药物
花中四君子是什么 尿糖是什么意思 脸为什么肿 石英岩玉是什么 香槟玫瑰花语是什么意思
鸡枞菌生长在什么地方 nothomme什么牌子 吃什么补血补气效果好 什么是小三阳 孕反什么时候结束
27岁属什么生肖hcv8jop6ns3r.cn 肚脐眼周围疼吃什么药hcv8jop5ns4r.cn 经常拉肚子是什么原因引起的jinxinzhichuang.com 为什么会得乙肝hcv9jop1ns1r.cn 把脉能看出什么隐私hcv9jop5ns6r.cn
早晨醒来口苦是什么原因hcv9jop6ns5r.cn 博物馆里面有什么hcv9jop0ns7r.cn 幽门螺杆菌阳性吃什么药hcv8jop0ns4r.cn 黄帝内经讲的是什么hcv8jop4ns2r.cn 棉花代表什么生肖hcv8jop3ns1r.cn
什么像什么比喻句hcv8jop8ns0r.cn 红沙日是什么意思hcv7jop6ns2r.cn 为什么头发突然秃了一块hcv8jop1ns1r.cn 辣条吃多了有什么危害hcv7jop9ns0r.cn 半干型黄酒是什么意思hcv9jop6ns3r.cn
11月18是什么星座hcv9jop8ns3r.cn 做梦梦到地震预示着什么hcv7jop6ns0r.cn 属龙的和什么属相最配hcv7jop9ns3r.cn 梦见奶奶死了是什么意思hcv9jop0ns1r.cn 榴莲不能和什么吃hcv9jop5ns3r.cn
百度