想吐是什么原因| 湿疹吃什么药好| 杜冷丁是什么| 百香果是什么季节的水果| 蜂蜜什么时候吃最好| 心电轴左偏是什么意思| 农历七月初七是什么节日| 玫瑰痤疮是什么原因| 珍珠奶茶的珍珠是什么做的| canon是什么意思| 心脏下边是什么器官| 女性尿路感染吃什么药| 跳蚤为什么只咬一个人| 六月十一号是什么星座| 稀释是什么意思| 广州有什么好吃的| 什么店可以买到老鼠药| 检点是什么意思| 寻常是什么意思| 甘油三酯高吃什么降得快| 用什么水和面烙饼最软| 梦见粉条是什么意思| 什么得直什么| 脚底出汗是什么原因女| 吃什么可以帮助睡眠| 为什么运动完会恶心头晕想吐| 羊的守护神是什么菩萨| 药物制剂是干什么的| 跟泰迪很像的狗叫什么| 居高临下是什么意思| 宸字属于五行属什么| 诚字属于五行属什么| 腰封是什么意思| 百丽鞋属于什么档次| 炼乳可以做什么美食| 楞严神咒是什么意思| 子宫肌瘤有什么危害| 孕晚期缺铁对胎儿有什么影响| 凌晨5点是什么时辰| 弹颏是什么意思| 皮内瘤变到底是什么意思| 肠胃炎可以吃什么| aki是什么意思| 喝什么牌子的水最健康| 胸痛一阵一阵的痛什么原因| 乙肝病毒是什么| 一笑了之是什么意思| 双子座后面是什么星座| 白居易号什么居士| 戴玉对身体有什么好处| 出恭什么意思| 康复治疗学主要学什么| 无以言表什么意思| 风湿病是什么原因造成的| 7月28是什么星座| mra是什么意思| 女性漏尿是什么原因| 什么叫穿刺| 盐酸氯米帕明片有什么作用| 五子登科是什么意思| 1987年属什么今年多大| 不造是什么意思| 眼睑肿是什么原因| 粉红色泡沫样痰是什么病| 1月23日是什么星座| 出现血精吃什么药| 男人腿毛多代表什么| 肛门痒擦什么药| 巧囊是什么| 感恩节为什么要吃火鸡| 城五行属什么| 右侧卵巢无回声是什么意思| 梦见和死去的亲人说话是什么意思| 办身份证穿什么颜色衣服| 欧珑香水什么档次| 整装待发是什么意思| 脸上长痣是什么原因造成的| 免疫球蛋白g是什么意思| 去海边穿什么| 猫咪打呼噜代表什么| 阴道里面瘙痒是什么原因| 四大是什么| 淡淡的什么| 五月份是什么季节| 疱疹不能吃什么| 尿酸高是什么原因造成的| 探望病人买什么水果| 热疹症状该用什么药膏| svc是什么意思| 白血球高是什么原因| 九月初六是什么星座| 自负什么意思| 小便尿起泡是什么原因| 肺结节吃什么| 是什么字| 骨质疏松吃什么钙片| 佝偻病什么症状| 天气一热身上就痒是什么原因| 骶1隐裂是什么意思| 什么的风雨| 经期洗头有什么危害| xy是什么意思| 榴莲有什么营养价值| 喉咙嘶哑吃什么药| 吉人自有天相是什么意思| 腿上紫色血丝什么原因| 肚子左侧是什么器官| 油压是什么意思| 咳嗽黄痰是什么原因| 开天门是什么意思| 何方神圣是什么意思| 吃什么可以让奶水增多| 偏光和非偏光有什么区别| 2018是什么生肖| 什么是乳腺增生| 副高是什么意思| 男人更年期吃什么药| 什么叫道德| 脘腹胀满是什么意思| 断子绝孙是什么意思| 艾滋病阴性是什么意思| 脾虚是什么原因引起的| 小孩睡觉磨牙是什么原因引起的| 熊猫长什么样| 高尿酸血症是什么意思| 脚气挂什么科| 小手指麻木是什么原因引起的| 为什么会胀气| 指甲竖条纹是什么原因| 肠炎能吃什么水果| 食人鱼长什么样| 黑加仑是什么水果| 骨髓炎是什么病| 自费是什么意思| 梅毒早期什么症状| 三尖瓣少量反流是什么意思| 喝白茶有什么好处| 长期口臭吃什么药| 老子是什么时期的人| 包皮什么年龄割最好| 肾疼挂什么科| 肉苁蓉与什么搭配好| 磨牙齿是什么原因| 配送是什么意思| 宝宝肠炎吃什么药| 绿茶妹是什么意思| 右膝关节退行性变是什么意思| 五劳七伤什么生肖| 患难见真情的上一句是什么| 女人耳鸣是什么前兆| 牛刀割鸡是什么生肖| 小二是什么意思| facebook是什么| 细菌感染发烧吃什么药| 陈皮不能和什么一起吃| 神经根型颈椎病吃什么药| 两小儿辩日告诉我们什么道理| 249是什么意思| 银行卡睡眠状态是什么意思| 蛐蛐吃什么| 岂是什么意思| 居居是什么意思| copd是什么病| 坐月子吃什么| 肺部有阴影是什么原因| 奶绿是什么| 志心皈命礼是什么意思| adl是什么意思| 胃胀是什么感觉| 腮腺炎反复发作是什么原因| moncler是什么牌子| 林深时见鹿是什么意思| 5月31号什么星座| 洗洗睡吧什么意思| 牙痛 吃什么药| 脑梗挂什么科室| 灰指甲有什么特效药可以治好| 婴儿拉肚子是什么原因造成的| 我想长胖点有什么办法| 肺纹理增粗是什么意思| 瑞舒伐他汀钙片治什么病| 肺气肿是什么原因引起的| 夏天喝什么解暑| 米西米西什么意思| 9月14号什么星座| 集成灶什么品牌最好| 十月二十六是什么星座| 女团是什么意思| 血脂稠喝什么茶效果好| 家里为什么会有蟑螂| 叫人挪车打什么电话| 什么动物是爸爸生的| 米饭配什么菜| 皴是什么意思| 在家里可以做什么赚钱| 下面有炎症用什么药| 乙型肝炎病毒表面抗体阳性是什么意思| x代表什么数字| 地黄长什么样子图| 氧分压是什么意思| 高丽参有什么功效| 马兰头是什么菜| 比卡丘什么意思| 枕芯用什么填充物好| 国粹是什么| 儒家思想的核心是什么| 荷花和睡莲有什么区别| 化脓性扁桃体炎吃什么药| 结膜炎是什么原因引起的| 脚磨破了涂什么药| 直升是什么意思| 吃炒黄豆有什么好处和坏处| 正县级是什么级别| 乳腺彩超挂什么科| 豆角和什么一起炒好吃| 皮肤长癣是什么原因引起的| ibs是什么单位| 领略是什么意思| 胃腺息肉什么意思| 胃热吃什么| 波立维什么时间吃最好| 沙蟹吃什么| 杜甫是什么派诗人| 身上红痣多是什么原因| 宰相是现在的什么官| 大白片是什么药| 肾结石可以喝什么饮料| 拖是什么意思| 旺字五行属什么| 怀孕做梦梦到蛇是什么意思| 茯苓不能和什么一起吃| 头发长不长是什么原因怎么办| 肠系膜淋巴结炎吃什么药最有效| 时蔬是什么意思| 卒中中心是干什么的| 报销什么意思| 嚣张是什么意思| 乳腺病人吃什么好| 斯文败类是什么意思| 例假提前半个月是什么原因造成的| 肝岛是什么意思| 肚子左边是什么部位| 天德合是什么意思| 空腹吃西红柿有什么危害| 急性肠胃炎吃什么食物| 减肥为什么会口臭| 女孩子学什么专业| 心脏病吃什么水果最好| 一个口一个者念什么| 焗油和染发有什么区别| 子宫形态不规则是什么意思| 舌头根发麻是什么原因| 男性湿热吃什么药最好| 前列腺钙化灶是什么病| 一切唯心造是什么意思| oder是什么意思| 社会抚养费是什么意思| brown什么意思| 耳朵响是什么原因| 男人眉毛长代表什么| 排卵期会有什么症状| 男生腿毛旺盛说明什么| 属虎男和什么属相最配| 医师是什么级别| 百度
Jump to content

解放军的非洲亲传弟子 干翻世界强人帮中国大忙

From ArchWiki
(Redirected from Restart)

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
Note Text files must end with a newline because a line is terminated with a newline. Most text editors insert an ending newline by default.

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

A notable command that does not follow this exact pattern is systemctl 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 should be able to recognize these cases by the context.

cold什么意思 鉴定是什么意思 虾和什么不能一起吃 眼睛痒用什么眼药水好 什么叫消融手术
刘强东属什么生肖 平起平坐代表什么生肖 钓鲈鱼用什么饵最好 用热毛巾敷眼睛有什么好处 手麻是什么原因
216是什么意思 脑供血不足头晕吃什么药 下午8点是什么时辰 农历五月初五是什么节日 风生水起是什么生肖
b超属于什么科室 半干型黄酒是什么意思 直捣黄龙是什么意思 女性憋不住尿是什么原因 头疼一般是什么原因引起的
痰栓是什么意思hcv9jop2ns7r.cn 小麦什么时候播种hcv9jop4ns4r.cn 吃芒果对身体有什么好处hcv7jop4ns5r.cn 小孩子头发黄是什么原因hcv8jop9ns1r.cn 乔木是什么意思hcv9jop8ns2r.cn
小孩子睡觉流口水是什么原因hcv8jop6ns5r.cn 用什么洗脸可以祛斑hcv9jop2ns8r.cn 晚上睡觉牙齿出血是什么原因jiuxinfghf.com 浪子回头是什么意思hcv8jop0ns0r.cn 发霉的衣服用什么洗能洗掉hcv8jop8ns1r.cn
貌合神离是什么意思hcv9jop6ns0r.cn 什么茶属于绿茶hcv8jop4ns0r.cn 支气管哮喘是什么原因引起的weuuu.com 5月5号什么星座hcv7jop9ns3r.cn 低回声是什么意思jingluanji.com
系统b超主要检查什么hcv9jop4ns0r.cn 什么是党的根本大法hcv7jop5ns4r.cn 缺铁性贫血吃什么食物dayuxmw.com olp是什么意思hcv8jop8ns7r.cn 圆脸女生适合什么发型hcv9jop1ns9r.cn
百度