倒卖是什么意思| 肌层彩色血流星点状是什么意思| 为什么星星会眨眼睛| 6月13日是什么日子| 非萎缩性胃窦炎是什么意思| 诱惑是什么意思| 梦见被熊追是什么意思| 梦见生了个孩子是什么意思| 大黄蜂是什么车| 心力衰竭吃什么药最好| 睡觉口干是什么原因| 什么烧鸭子好吃| 政客是什么意思| 夏侯霸为什么投降蜀国| 做梦手机坏了什么预兆| 付诸东流是什么意思| 咽喉痒干咳吃什么药| 痔疮不治会有什么危害| 汛期什么意思| 消防大队长是什么级别| 过敏性咳嗽吃什么药好| 职业暴露是什么意思| 御是什么意思| 维生素b2有什么功效| 给猫咪取什么名字好听| 什么的向日葵| 什么是健康证| 骨癌有什么症状有哪些| 七六年属什么生肖| 无花果叶子有什么功效| 提拉米苏是什么意思| 胸口闷痛什么原因引起的| 专辑是什么| 蒙脱石散是什么药| 什么猫不掉毛| 烟雾病是什么原因引起的| 右耳朵耳鸣是什么原因| 83年属猪是什么命| 晚上口苦是什么原因引起的| 鹅喜欢吃什么草| 绝对值是什么意思| 孩子出疹子应该注意什么| 男女之间的吸引靠什么| 心有余悸是什么意思| 蚂蚁为什么要搬家| 一什么湖水| 喜筵和喜宴是什么意思| 距离产生美是什么意思| 生姜放肚脐眼有什么功效| 什么叫空调病| 爬是什么结构| 三宝是什么意思| 义齿是什么| 梦见牙掉了是什么意思| 霸道总裁是什么意思| 乌龟能吃什么水果| 月经推迟吃什么| o和b型生的孩子是什么血型| 什么是智商| qa和qc有什么区别| 蟑螂屎长什么样| 怀孕吃叶酸片有什么用| 为什么阴天紫外线更强| 什么的夜晚| 黑鱼吃什么| 闺六月是什么意思| 阴道里面有个肉球是什么| 小人得志是什么意思| 水煎服是什么意思| 鼻尖发红是什么原因| 福禄是什么意思| 慢性咽炎挂什么科| 5月13日什么星座| 脚浮肿是什么原因引起的| 髂胫束在什么位置| 11月9日什么星座| 女人的逼长什么样| 囊实性结节是什么意思| 热量是什么| 早泄吃什么好| 7月23日是什么日子| 金木水火土各代表什么| 水囊是什么| 生吃蛇胆有什么功效| 继发性高血压什么意思| 为什么同房会痛| 最聪明的动物是什么| 1955年属什么| 印度总统叫什么名字| 上火吃什么药好| 闷骚男是什么意思| 肺气肿吃什么药| 苏州古代叫什么| 9月6日什么星座| 胃疼吃什么药好得最快最有效| 七月十六号是什么星座| 肆虐是什么意思| 倾字五行属什么| 念珠菌用什么药最好| 妈妈是什么意思呢| 丈夫的弟弟叫什么| 额头上长痘痘是什么原因| 肝病初期有什么症状| 子宫脱垂什么症状| 纤维条索灶是什么意思| 血脂高不能吃什么食物| 交警中队长是什么级别| 白带异常用什么药| 什么情况下需要做肠镜检查| 肩周炎口服什么药最好| 脑梗的症状是什么| 前列腺增生吃什么药见效快| 人中白是什么| 鼻子痒用什么药| 晴对什么| 什么头什么颈| 右肩膀疼是什么原因| 梦见恐龙是什么意思| 孕妇为什么那么怕热| lyocell是什么面料| 芒果什么品种最好吃| 肺有小结节要注意什么| 香草是什么意思| 打无痛对身体有什么影响吗| 一个月一个办念什么| fci是什么意思| 尿常规检查什么| 经产妇是什么意思| 口臭看什么科| 身份证号后四位代表什么| 丑是什么生肖| 随礼钱有什么讲究| 梅毒长什么样子| rap是什么意思| 心急吃不了热豆腐什么意思| 农业户口和非农业户口有什么区别| 看脑血管挂什么科| 什么是色拉油| 丝瓜什么时候种植最好| 心宽是什么意思| 梦见自己家被盗有什么预兆| 鱼油什么时间吃最好| 血管瘤有什么症状| 女性多吃什么滋补卵巢| 白兰地是什么酒| 103是什么意思| 晏字五行属什么| 挑食是什么意思| 肝炎有什么症状| 血液粘稠会有什么症状| 多元是什么意思| 吃什么能补充雌激素| 干什么呢| 普瑞巴林是什么药| 木樨是什么意思| 单纯疱疹病毒吃什么药| 女性安全期是什么时候| 儿童乘坐飞机需要什么证件| 养心吃什么| 梦见生娃娃是什么意思| 1994年属狗是什么命| 男同是什么| 胃酸胃烧心吃什么药| 双环醇片治什么病| fap什么意思| 人为什么要火化| 国家一级演员是什么级别| 超声波是什么意思| 稀释是什么意思| 蛤蚧是什么动物| 什么西瓜| 送什么礼物好| 流加金念什么| 脑血栓是什么意思| 服装属于五行什么行业| 1942年属什么生肖| t什么意思| 荠菜长什么样| 杏仁是什么| 猎奇是什么意思| 为什么叫印度阿三| 天麻有什么作用| 什么什么不同| 侵蚀是什么意思| 腕管综合征吃什么药| 什么叫做| 情感障碍是什么意思| 脂肪是什么组织| 什么是呼吸性碱中毒| 囊肿有什么症状| 喝酒手发抖是什么原因| suv是什么意思| 补气血吃什么药效果好| 婚检挂什么科| 脾门区结节是什么意思| 什么掌不能拍| 夜尿多是什么原因引起的| 跖疣去医院挂什么科室| 男人性功能太强是什么原因| 什么会引起高血压| 嗓子疼是什么原因引起的| 眼睛干涩吃什么中成药| 雪莲菌泡牛奶有什么功效| 生孩子送什么花| 什么医院才是正规医院| 翡翠跟玉有什么区别| 有朝一日是什么生肖| 48是什么意思| 脚气挂什么科室| 属蛇的贵人是什么属相| 维生素d滴剂什么时候吃最好| 睡眠不好用什么药调理| 喝生鸡蛋有什么好处| 什么鱼炖汤好喝又营养| 沙里瓦是什么意思| 黑色加什么颜色是棕色| 长公主是皇上的什么人| 桑叶有什么功效| 桐五行属什么| 12.29是什么星座| gin什么意思| 什么是肽| 什么火没有烟| 什么叫腱鞘炎| 魁拔4什么时候上映| 泌乳素是什么| 脾脏切除后有什么影响| 缪读什么| 蜱虫咬人后有什么症状| 男性囊肿是什么引起的| 心动过缓是什么意思| 一杆进洞叫什么球| 零八年属什么| reebok是什么牌子| 什么样的小鸟| 神机妙算是什么意思| 福兮祸兮是什么意思| 幽门杆菌吃什么药最好| 惊悉是什么意思| 检查生育能力挂什么科| 莫言是什么意思| 什么是| 驹是什么意思| 滋阴潜阳是什么意思| 感冒头疼吃什么药好| 甘油三酯高吃什么降得快| 血糖高适合吃什么食物| 南什么北什么| 舌头发硬是什么原因| 夏天为什么会下冰雹| 什么饼不能吃| 梦见修路什么意思| 黑便是什么原因| 布洛芬吃多了有什么后果| 吃什么止咳| 手抖是什么病| 传奇是什么意思| 钾离子高有什么危害| 自私自利是什么意思| 肚子疼是什么原因引起的| 乳头发黑是什么原因| 韩红是什么民族| 感冒喝什么药| 什么是白条| 百度
Jump to content

怀胎三月孕妇遭男友杀害 警方朋友圈找线索破案

From ArchWiki
Control of systemd units: replace systemd link with systemd#Using units: it is more specific and is better suited for the subject of this section.
Sodium (talk | contribs)
Line 154: Line 154:


? # systemctl start example.service
? # systemctl start example.service
If the instructions ask you to enable the service as a [[user unit]] then you have run:
# systemctl --user start 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 17:55, 7 August 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.

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 sudo#Login shell.

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 unit (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

If the instructions ask you to enable the service as a user unit then you have run:

  1. systemctl --user start example.service

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

The systemd#Using units section contains structured list of available actions (like start, enable, enable and start, etc.) with their corresponding systemctl commands.

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.

么么叽是什么意思 小手指麻木是什么原因 阴唇肿是什么原因 2003年是什么命 18k黄金是什么意思
膂力是什么意思 什么是负氧离子 气虚是什么原因造成的 见好就收是什么意思 草长莺飞是什么生肖
诺如病毒吃什么药 为什么肚子越来越大 甲亢是一种什么病严重吗 脑多普勒检查什么 男人为什么喜欢女人
巨蟹女跟什么星座最配 解痉是什么意思 京东自营什么意思 炎性结节是什么意思 什么是淋巴
米肉是什么liaochangning.com 月经期适合做什么运动hcv8jop5ns2r.cn 江西有什么特产hcv9jop6ns6r.cn 水漫金山是什么意思hcv8jop2ns9r.cn 什么可以补肾壮阳hcv8jop3ns6r.cn
螳螂代表什么生肖hcv9jop2ns6r.cn 黄山四绝是什么hcv8jop0ns8r.cn 血糖高会有什么症状hcv8jop3ns4r.cn 宫腔内囊性回声是什么意思hcv8jop1ns2r.cn 鼠和什么生肖最配hcv8jop8ns0r.cn
呼吸音粗是什么原因hcv8jop2ns6r.cn 猪肉炒什么菜好吃hcv8jop8ns6r.cn 酸儿辣女什么意思hcv8jop8ns2r.cn 醋酸是什么hcv8jop1ns9r.cn 减脂早餐吃什么hcv8jop2ns4r.cn
sry什么意思hcv7jop6ns7r.cn 血小板计数高是什么原因hcv7jop9ns3r.cn 尿粒细胞酯酶阳性什么意思0735v.com 为什么会有盆腔积液hanqikai.com 什么烧鸡好吃yanzhenzixun.com
百度