沉香对人体有什么好处| 拔牙有什么危害| 7.22是什么星座| 古代的面首是什么意思| 塑造是什么意思| 莲雾什么味道| 阿尔茨海默症是什么症状| 子宫肌瘤有什么症状| 2001年属蛇五行属什么| 什么水果维生素c含量最高| 室上速是什么病| 会厌炎吃什么药| 长期失眠吃什么药好| 姜子牙姓什么| 什么身子| 什么样的鲜花| 集体户口是什么意思| 肺气肿是什么意思| 强回声斑块是什么意思| 甲虫吃什么| 九月十号是什么星座| 缘是什么意思| 十二星座什么第一名| 扁桃体结石是什么原因引起的| 拉肚子想吐是什么原因| 哪吒他妈叫什么名字| 宛字五行属什么| 扛幡是什么意思| 网监是干什么的| 宋小宝得了什么病| 什么叫消融术治疗| 肚脐的左边疼是什么原因| 什么是痛风| 什么不能带上飞机| 怨念是什么意思| 哪吒是什么意思| 重阳节应该吃什么| 心脏疼是什么原因| 什么食物对心脏有好处| 达克宁栓治疗什么妇科病| 老人脚肿是什么征兆| 为什么喝完酒头疼| 蛐蛐是什么意思| 心脏跳动过快吃什么药| gabor是什么牌子| 红色配什么颜色好看| 成熟是什么意思| 为什么早上起来血压高| 甲状腺1度肿大是什么意思| 发烧不退烧是什么原因| 为什么叫985大学| 九月十三是什么星座| 油嘴滑舌是什么意思| 一个月一个并念什么| 什么本本| 验孕棒什么时候测最准确| 什么药膏可以去黑头| 业力重是什么意思| 风热感冒吃什么药效果好| 乙基麦芽酚是什么东西| 红细胞偏高是什么病| 跟腱炎贴什么膏药最好| 心里难受是什么原因| 尿液发黄是什么病| 什么是微循环| 孔子是什么家| 剖腹产可以吃什么水果| 身上出冷汗是什么原因| cp是什么意思| 昭字五行属什么| 皿是什么意思| 莴笋不能和什么一起吃| 点睛之笔是什么意思| 儿童乘坐高铁需要什么证件| 打喷嚏流鼻涕吃什么药好| 什么烟最贵| 寅时是什么时间| 为什么手脚冰凉还出汗| 烟酒不沾的人什么性格| 挂钟挂在客厅什么位置好| 为什么吐后反而舒服了| 事例是什么意思| loa胎位是什么意思| 什么的同学| 海棠是什么| 女性下小腹痛挂什么科| 脚趾头麻木是什么原因| 车仔面为什么叫车仔面| 女m是什么意思| 意思是什么意思| 尿毒症小便什么颜色| 双侧肾盂无分离是什么意思| 蛇胆疮是什么引起的| alienware是什么牌子| 身上为什么老是痒| 白带黄色是什么原因| 喝普洱茶有什么好处| 什么人容易得阿尔兹海默症| 什么有助于睡眠| 戴银镯子对身体有什么好处| 撒贝宁是什么民族| 奶思是什么意思| 水痘是什么样的| 呕吐是什么原因引起的| 去湿气吃什么中药| 白细胞十十是什么意思| 右眼上眼皮跳是什么预兆| 热脸贴冷屁股是什么意思| 百合花什么时候开花| 一饿就心慌是什么原因引起的| 入盆是什么意思| 阴历六月十九是什么日子| pending是什么状态| 嫦娥奔月是什么节日| 最小的一位数是什么| 胃镜能检查出什么| 9月15号是什么星座| 黑醋是什么醋| 茜字五行属什么| 犹太人为什么叫犹太人| 送同学什么生日礼物好| 886是什么意思| 邦字五行属什么| 关节疼挂什么科| 14年婚姻是什么婚| 陈旧性骨折是什么意思| 以纯属于什么档次| 筛是什么意思| 嗓子疼吃什么药| 沙门氏菌用什么药最好| 当归长什么样的图片| 为什么一喝水就出汗| 断章取义什么意思| 四月七号是什么星座| 什么是熬夜| 南瓜子不能和什么一起吃| 文爱是什么| nba下个赛季什么时候开始| 叶绿素是什么| 甲状腺结节吃什么药| 临床医学学什么| 腿走路没劲发软是什么原因| 六角龙吃什么食物| 心肌炎有什么症状和表现| 涉三什么意思| 硒片不适合什么人吃| 老人嘴唇发紫是什么原因| 牛皮革是什么意思| 肩周炎用什么药好| 猪肉不能和什么一起吃| 什么东西有脚却不能走路| 文爱是什么| 芦荟有什么功效与作用| 形容高兴的词语有什么| eps是什么意思| 左腰疼是什么原因| 肌酐高吃什么水果好| 狗狗什么时候打疫苗| 沉香木是什么| 高丽参和红参有什么区别| 衣的部首是什么| 什么血型的人最聪明| 9价疫苗适合什么年龄人打| 心率高是什么原因| 面部脂溢性皮炎用什么药| 母亲节一般送什么礼物| 发动机抖动是什么原因| 头颅mri是什么检查| 什么快递比较快| 婴儿哭久了有什么危害| 挂妇科门诊都检查什么| 取环是什么意思| 绿色加红色是什么颜色| 输血浆主要起什么作用| 过年为什么要吃饺子| 霸天虎和威震天是什么关系| 女人为什么会阳虚| 缺铁性贫血的人吃什么补血最快| 黑玫瑰代表什么意思| 煎牛排用什么油好| 金蝉吃什么| 76年属什么生肖| 今年37岁属什么生肖| 笋不能和什么一起吃| 二哥是什么意思| 戾气什么意思| 淋巴细胞偏高说明什么问题| 酗酒什么意思| 什么淀粉最好| 番茄可以做什么菜| parzin眼镜是什么牌子| hpv52型阳性是什么意思严重吗| 脚筋膜炎什么办法恢复的最快| 出类拔萃是什么意思| 82年属狗是什么命| 为什么吐后反而舒服了| 头发粗硬是什么原因| 新疆有什么水果| osprey是什么牌子| o型血和什么血型容易溶血| 农历六月初七是什么星座| 中秋节有什么活动| 男性查hpv挂什么科| 背德是什么意思| 急性肠炎吃什么食物好| 梦见自己生二胎是什么意思| 岁月如歌什么意思| 子宫偏小是什么原因| 往来账是什么意思| 黄花苗泡水喝有什么作用| 突然的反义词是什么| 鸽子单眼伤风用什么药| 什么是胰岛素| 纯天然无公害什么意思| 元旦吃什么| 动脉圆锥是什么意思| 不什么下什么的成语| 人得布病什么症状| 人乳头瘤病毒是什么病| 5月1号是什么星座| 卡鱼刺去医院挂什么科| 狗狗什么时候打疫苗| 非处方药是什么意思| 内膜增厚是什么原因| 尿蛋白是什么意思| 麻叶是什么植物| 宝藏是什么意思| 治癜风擦什么药好的快| 6月14日是什么星座| 锁钥是什么意思| 脸上有痣去医院挂什么科| 荔枝吃了有什么好处| 小叶增生和乳腺增生有什么区别| 小孩腹泻吃什么药好得快| 卡介苗为什么会留疤| b超是查什么的| 刺史是什么官职| 鱼跳出鱼缸有什么征兆| 发糕是什么做的| ufo是什么意思| 明太鱼是什么鱼| 蓟什么意思| 只出不进什么意思| 什么鸟一生只有一个伴侣| 什么是电解质| 6.8什么星座| 抽血为什么要空腹| 罗汉果有什么作用| 类风湿是什么原因引起的| 吃什么对肝好怎么养肝| 什么方法避孕最安全有效| 佛手柑是什么| 向日葵是什么| 憨厚是什么意思| 川字加一横是什么字| 鸭跖草用什么除草剂| 子宫内膜什么时候脱落| 劓刑是什么意思| 1954属什么生肖| 舒畅的舅舅是做什么的| chip什么意思| 睡觉流口水是什么原因引起的| 木灵念什么| 狗刨坑是什么征兆| 百度
Jump to content

Magnolienblüten vor dem Nationalen Zentrum für darstellende Kunste in Beijing

From ArchWiki

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

Root, regular user or another user

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.

When the commands need to run as a specific user, they will be prefixed by the username in square brackets, for example:

[postgres]$ initdb -D /var/lib/postgres/data

This means you should use a privilege elevation tool, e.g. with sudo:

$ sudo -u postgres initdb -D /var/lib/postgres/data

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 meta package is required to build packages from the AUR or with the Arch build system.

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 etc. 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

A notable command that does not follow this exact pattern is daemon-reload which will be called without arguments.

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.

什么时候买机票便宜 消化不良吃什么水果 什么是发票抬头 煎中药用什么锅 hpv52高危阳性是什么意思
掰弯了是什么意思 ct检查什么 萤火虫为什么会发光 豆花是什么 头疗是什么
梦见烧衣服什么预兆 海盐是什么盐 女攻男受是什么意思 静脉曲张挂什么号 八面玲珑指什么生肖
龙跟什么生肖最配 腰椎ct能查出什么 fashion是什么意思 vt是什么 摩拳擦掌是什么意思
专场是什么意思hcv9jop2ns7r.cn 醒面是什么意思hcv9jop6ns8r.cn 蝴蝶代表什么生肖hcv8jop6ns1r.cn 考研都考什么科目hcv9jop6ns2r.cn 空调多少匹什么意思hcv7jop4ns8r.cn
悬饮是什么意思gysmod.com 出伏是什么意思hcv8jop1ns8r.cn 香蕉为什么不能放冰箱hcv8jop4ns8r.cn 乳头内陷是什么原因hcv9jop2ns0r.cn 昕字取名什么寓意hcv8jop1ns9r.cn
阿尔兹海默症挂什么科520myf.com 献血证有什么用hcv7jop6ns6r.cn 什么食物高蛋白含量高hcv8jop6ns5r.cn 不孕不育应检查什么weuuu.com 支原体感染用什么药hcv9jop0ns3r.cn
靠腰是什么意思hcv9jop0ns0r.cn 山楂干泡水喝有什么功效和作用shenchushe.com 前卫是什么意思tiangongnft.com 11月16日是什么星座hcv9jop4ns5r.cn 蟑螂长什么样hcv8jop6ns5r.cn
百度