六味地黄丸什么时候吃| 什么是耽美| 好运是什么意思| 避孕套长什么样| 怀孕10天有什么症状| 女性排卵期是什么时候| 理疗师是做什么的| 氯化钙是什么| 什么地散步| 空腹是什么意思| 为什么印度人叫阿三| 胃痉挛吃什么药好| 丁毒豆泡酒能治什么病| 嗜睡是什么原因| 一什么大厦| 天德月德是什么意思| 8月23日是什么星座| 手脚发热什么原因| 红枣和灰枣有什么区别| 中医是什么| 辩证思维是什么意思| 男头发稀少适合什么发型| 凌驾是什么意思| 虚岁28岁属什么生肖| 什么叫内痔什么叫外痔| 车牌号选什么数字吉利| 月经期喝什么汤好| 捭阖是什么意思| 鸡蛋和什么不能一起吃吗| 从从容容的意思是什么| 女孩子学什么专业好| 晚上喝蜂蜜水有什么好处| 钳子什么牌子好| 后循环缺血是什么意思| 高血压有什么症状表现| 大姨妈来了不能吃什么水果| 肺部气肿吃什么药能治好| 果是什么结构的字| j是什么| 晶莹的意思是什么| 肚子上面是什么部位| 碱性磷酸酶是什么| 舌裂纹吃什么可以恢复| 甲鱼和什么食物相克| 中国的国树是什么| 疱疹吃什么药好得快| 1234是什么意思| 椰子煲鸡汤放什么材料| 内膜欠均匀是什么意思| 颞下颌关节炎吃什么药| 开水烫了用什么紧急处理| 妇科检查bv阳性是什么意思| 特需门诊和专家门诊有什么区别| 福泽深厚什么意思| 刘备是什么样的人| 血压低吃什么| 为什么抽烟会上瘾| 印枭是什么意思| 头疼呕吐吃什么药| 心脏杂音是什么意思| 捡到金子预示着什么| 李白字什么号什么| rbc红细胞偏高是什么意思| 小猫感冒吃什么药| 上火喉咙痛吃什么药| 什么是龋齿| 手指爆皮是什么原因| 射手座的幸运色是什么颜色| hg是什么元素| 蚊子不喜欢什么味道| 出马什么意思| 点痣后用什么修复最好| 阴虚体质是什么症状| hbv是什么病毒| 吃什么增加卵泡| 无赖不还钱最怕什么| 度蜜月什么意思| 鸟加衣念什么| 月经总推迟是什么原因| 千人千面是什么意思| 子宫薄是什么原因造成的| 眼睛痒什么原因| 炖鱼放什么调料| 杨梅和什么不能一起吃| 今年什么时候进入伏天| 什么时候测量血压最准确| 马蹄铁什么时候发明的| 早餐有什么| 甲状腺结节伴钙化什么意思| 肠腔积气是什么原因| 朋友圈发女朋友照片配什么文字| 什么是盗汗| 蚊子怕什么植物| 导管是什么意思| 反流性食管炎b级是什么意思| 馀是什么意思| 酸化是什么意思| 依非韦伦片治什么病的| 手上长毛是什么原因| 照身份证穿什么颜色的衣服| 松子是什么树的果实| 软骨炎吃什么药| 羊排炖什么好吃| 5月22号是什么星座| 口腔上火吃什么药| 智齿是什么| 阴道口痛什么原因| 什么动物是站着睡觉的| 动物的尾巴有什么用处| 大本营是什么意思| 花生的种子是什么| 什么是三公经费| 清热利湿吃什么药| 佛舍利到底是什么| 人参果总皂苷是什么| 梦见爬山是什么预兆| 2002年出生属什么| 骨质增生吃什么药效果好| hpv52阳性是什么意思| 下饭菜都有什么菜| 金牛座的幸运色是什么| 免疫球蛋白g是什么意思| 邋遢是什么意思| 表现是什么意思| 阑尾炎痛起来什么感觉| 被蝎子蛰了有什么好处| 正县级是什么级别| 经常做春梦是什么原因| 人出现幻觉是什么原因| 泡酒用什么酒好| 头皮发麻是什么病的前兆| 籽骨是什么意思| 叶公好什么| 咳嗽吃什么菜好| 小腿酸胀痛是什么原因| 绞股蓝有什么作用| 飞机上不能带什么东西| pt950是什么金| 韩世忠为什么不救岳飞| 肾挂什么科室| 对蚊子过敏是什么症状| 经常手淫对身体有什么危害| 九月十二号是什么星座| 老年人口干是什么原因| 什么是牛黄| 钓黑鱼用什么饵最好| 小猫为什么一直叫| 一什么笑声| 中将是什么级别的干部| 沙门氏菌用什么药最好| 还珠格格什么时候上映的| 看病人带什么水果| 57年属什么生肖| emerson是什么牌子| 佝偻病是什么症状| 幼儿园转园需要什么手续| 唏嘘什么意思| 子宫瘢痕憩室是什么病| 镪水池是什么| 儿童超敏c反应蛋白高说明什么| 监守自盗什么意思| usc是什么意思| 零点是什么意思| 第一次查怀孕挂什么科| 头晕吃什么药| 下巴长闭口是什么原因| 眼皮肿挂什么科| 碘伏和络合碘有什么区别| 家里为什么会有蟑螂| 石钟乳是什么| 舍是什么结构| 早晨起来口干口苦是什么原因| 丝状疣用什么药膏| 身体缺钾有什么症状| 疏离感是什么意思| 智齿发炎是什么原因| 晞是什么意思| 黑吃黑是什么意思| 吃什么对眼睛近视好| 为什么会有阴虱子| 玉女心经是什么意思| 男士长脸适合什么发型| 低压高是什么意思| 什么是刷酸| 阴囊潮湿瘙痒是什么原因| 妈妈生日送什么礼物| 蹲着有什么好处| 下巴底下长痘痘是什么原因| 千卡是什么意思| 孩子黑眼圈很重是什么原因| 心动过缓吃什么药| 一心向阳下一句是什么| 养猫的人容易得什么病| 蟑螂中药名称叫什么| 中宫是什么意思| 梅核气吃什么药好得快| 68年属什么| 6.1什么星座| 鸭梨是什么颜色| 滋阴润燥是什么意思| 六味地黄丸什么时候吃| 加持什么意思| 犯太岁是什么意思啊| 牙龈溃烂是什么原因| 海藻酸钠是什么| 土地兼并是什么意思| 全血检查能查些什么病| 指甲变黑是什么原因| 百合的花语是什么| 翡翠和玉有什么不同| 玫瑰茄是什么| 屋后有坟有什么影响吗| 土鸡炖什么好吃| 什么极了| 子宫外怀孕有什么症状| 心理学属于什么学科| 女性下小腹痛挂什么科| 1927年属什么生肖| hba是什么意思| 黄褐斑内调吃什么中药| 叶酸有什么作用和功效| 重阳节是干什么的| 筵是什么意思| 做梦梦到钓鱼是什么意思| ga是什么牌子| 安宫牛黄丸适合什么人群吃| 胃肠化是什么意思| 处女座幸运颜色是什么| 电视剧上星是什么意思| 卵泡刺激素是什么意思| 上天的动物是什么生肖| 孤是什么意思| 孕检无创是检查什么的| 痔疮是什么科室看的| 福生无量是什么意思| 血栓有什么症状| 车厘子与樱桃有什么区别| 什么的草叶| 捭阖是什么意思| 牛气冲天是什么生肖| 胃疼发烧是什么原因| 内膜厚是什么原因引起的| 女性尿路感染什么原因引起的| 百年好合是什么意思| cd是什么意思啊| 手术室为什么那么冷| 闺蜜是什么样的关系| stranger什么意思| 哆啦a梦大结局是什么| 不免是什么意思| 卵巢早衰吃什么药调理最好| 什么烧肉好吃| 小手指麻木是什么原因| 命犯桃花是什么意思| 属龙的今年要注意什么| 婴儿什么时候会走路| 茭白是什么| 摩羯座和什么座最配对| 表现手法有什么| 三千大千世界什么意思| 过期的啤酒能干什么| 葡萄糖氯化钠注射作用是什么| 气血不足吃什么食物| 秉着是什么意思| 百度
Jump to content

第二届震中杯2017短片:FC红白机时代的地卜师

From ArchWiki
nit
Tag: Reverted
Undo revision 803391 by Elijah Lynn (talk) - don't duplicate systemd#Using units
Tag: Manual revert
Line 152: Line 152:


? # systemctl start example.service
? # systemctl start example.service
And then if you want to also enable it to run on every boot:
# systemctl enable example.service


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

Revision as of 23:13, 15 March 2024

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.

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, 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

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.

永垂不朽是什么意思 做梦梦见剪头发是什么意思 小孩热感冒吃什么药好 11月什么星座 醋粉是什么做的
怀孕吃核桃对宝宝有什么好处 布病是什么病 绿色痰液是什么感染 梦见死鸡是什么预兆 早上5点多是什么时辰
芯字五行属什么 甲状腺饱满是什么意思 02年属什么的 胆怯的什么 bacon是什么意思
侍郎是什么官 肩胛骨疼是什么原因 猴魁属于什么茶 efw是胎儿的什么意思 经常吃南瓜有什么好处和坏处
公务员辞职做什么hcv9jop0ns3r.cn 缺铁有什么症状hcv9jop2ns2r.cn 79年出生属什么生肖hcv8jop3ns4r.cn 办暂住证需要什么hcv8jop3ns3r.cn 偏光太阳镜是什么意思hcv8jop5ns9r.cn
雍正叫什么wmyky.com 尿蛋白是什么原因造成的hcv9jop5ns3r.cn 岳字五行属什么hcv9jop2ns1r.cn 桑葚和枸杞泡水喝有什么好处clwhiglsz.com 激素六项什么时间查最好hcv7jop9ns2r.cn
日本人为什么喜欢喝冰水hcv9jop0ns1r.cn 貔貅是什么生肖hcv9jop8ns3r.cn 夜盲症缺什么维生素helloaicloud.com 伥鬼是什么意思hcv7jop6ns3r.cn 哭得什么hcv9jop4ns2r.cn
肉鸽是什么意思hcv8jop7ns0r.cn 外阴白斑瘙痒抹什么药hcv9jop8ns2r.cn 过生日送什么礼物好hcv8jop9ns2r.cn 睡觉多梦是什么原因引起的hcv8jop2ns2r.cn 经期喝咖啡有什么影响sanhestory.com
百度