父亲节什么时候| 98年属什么的| 后卫是什么意思| 女为悦己者容是什么意思| 金陵十三钗是什么意思| 什么克风| 精卫填海是什么故事| 黑白蛇是什么蛇| 上窄下宽的脸型适合什么发型| kda是什么意思| 脚心发热吃什么药| 12月20是什么星座| 螳螂吃什么| 吃什么食物补阳气| 小猫吃什么东西| 什么的医生| 七九年属什么生肖| 吃止疼药有什么副作用| 血压低吃什么水果最好| 梦见和死人说话是什么意思| 二毛二是什么军衔| 男生生理期是什么表现| 羊经后半边读什么| 两千年前是什么朝代| 青口是什么东西| 对酒当歌是什么生肖| 朱元璋是什么生肖| 青花鱼是什么鱼| 泡打粉是什么| 脂肪肝吃什么| 什么叫射频消融| 手脚麻是什么原因| 什么自如| 1953年是什么年| 狮子座与什么星座最配| 肠胃炎能吃什么水果| 当归有什么作用| 天河水是什么意思| ns是什么| 肠胃消化不好吃什么食物| 鱼油对眼睛有什么好处| 胎芽是什么| 这次是我真的决定离开是什么歌| 天上九头鸟地上湖北佬是什么意思| 出的汗是凉的什么原因| 孔子属什么生肖| 梦见自己生男孩是什么意思| 狼吞虎咽的意思是什么| 禹字五行属什么的| 最好的止疼药是什么药| 一什么桃子| 3月28日是什么星座| 吃葡萄干对身体有什么好处| 爬坡是什么意思| 速度是70迈心情是自由自在什么歌| 双绉是什么面料| 身份证有x代表什么| 反应性细胞改变炎症是什么意思| 菊花和金银花一起泡水有什么效果| 推拿和按摩有什么区别| 南瓜可以做什么美食| 后背痛是什么原因| 低压高会引起什么后果| 胼胝体是什么意思| 绿色食品是什么| 医院院长是什么级别| 大脑精神紊乱什么病| 放屁太臭是什么原因| 为什么不要看电焊火花| 男属鼠的和什么属相最配| 菠萝与凤梨有什么区别| 总胆汁酸高说明什么| c3是什么车型| 下眼睑跳动是什么原因| 嘴巴右下角有痣代表什么| 胸部正位片检查什么| 什么叫囊肿| 美甲光疗是什么| 画地为牢什么意思| 屁股痒是什么原因| 胃息肉是什么原因造成的| 茶水洗脸有什么好处和坏处| 含锶矿泉水有什么好处| 烧仙草是什么| 人子是什么意思| 拔冗是什么意思| 谷丙转氨酶高吃什么药可以降下来| 桔梗是什么| 为什么吃了避孕药还是怀孕了| 艾灸是什么| 多种维生素什么时候吃效果最好| 什么药降尿蛋白| 为什么眨眼睛| 手指有痣代表什么意思| 生脉饮适合什么人群| 背上长毛是什么原因引起的| 中性粒细胞偏低是什么原因| 屁多还臭是什么原因| 什么病需要做手术| hospital是什么意思| 两个禾念什么| 泡黄芪水喝有什么好处| 男生早上为什么会晨勃| 心阳虚吃什么中成药| 芒果可以做什么美食| 免疫五项能查出什么病| 蚂蚱吃什么| 鼻子疼是什么原因| 老人大小便失禁是什么原因造成的| 吴用属什么生肖| 一般什么原因做宫腔镜| 检查幽门螺杆菌挂什么科| 什么是埋线减肥| 为什么长不高| 梦到自己头发白了是什么意思| 睾丸积液吃什么药| 什么食物对眼睛好| 更年期吃什么好| 3月2号什么星座| 经常肚子疼是什么原因| 严重失眠有什么方法| 风湿和类风湿有什么区别| 什么玉最好有灵性养人| 属狗与什么属相相合| 奕什么意思| 新农合是什么| 韩束适合什么年龄段的人用| 肠癌是什么症状| 巨蟹座和什么座最配对| 男人吃什么补肾壮阳效果最好| 牟利什么意思| 金是什么结构的字| 中暑是什么症状| 什么叫杵状指| 肝肾功能检查挂什么科| 绝膑而亡是什么意思| 鼻炎是什么原因引起的| 宝宝不长肉是什么原因| 五心烦热是什么意思| 莲子有什么作用| 什么叫管状腺瘤| 鳖吃什么食物| 什么是扁桃体| 蝎子吃什么| 女金片的功效与作用是什么| 每天坚持跑步有什么好处| 水可以加什么偏旁| 补肾吃什么好| 为什么会有头皮屑| 仟字五行属什么| pisen是什么牌子| 投桃报李是什么生肖| 麻薯是什么| 柴米油盐什么意思| 心绞痛吃什么药最管用| remax是什么牌子| 拉肚子发烧是什么原因| 解痉是什么意思| 富贵包挂什么科| 什么人不能念阿弥陀佛| 全自动洗衣机不排水是什么原因| 什么样的人可以通灵| 甲亢可以吃什么| 胎盘后壁是什么意思| 阳绿翡翠属于什么级别| 足字旁的有什么字| 须眉什么意思| 贫血吃什么可以补血| 火疖子吃什么药| 17是什么意思| 什么叫机械手表| 拍胸片挂什么科| 类胡萝卜素主要吸收什么光| 一什么饼干| 7月1日是什么节日| 耳朵痒用什么药最有效| 窦骁的父母是干什么的| 为什么手抖| 椰土是什么| 中人是什么意思| 地心引力是什么意思| 甲状腺跟甲亢有什么区别| 热伤风吃什么| 公立医院和私立医院有什么区别| 12月20号是什么星座| 乙肝五项45阳性是什么意思| 鱼油什么牌子好| 八府巡按是什么官| 干燥症是什么症状| 孩子记忆力差吃什么好| 摩尔是什么| 掉头发吃什么药最有效| 空调长时间不用再开注意什么| 公安局大队长是什么级别| j是什么| 夜间抽搐的原因是什么| 一月二十号是什么星座| 革兰阴性杆菌是什么| 骑马野战指什么生肖| 维生素什么时候吃效果最好| 决心是什么意思| 对戒是什么意思| 脸肿脚肿是什么原因引起的| 异位妊娠是什么意思| 什么竹子| fbi相当于中国的什么| 花生属于什么类食物| 结膜炎是什么| 番茄不能和什么一起吃| 屁多吃什么药| 蚩是什么意思| 玄学什么意思| 走马灯什么意思| fm什么意思| 什么样的伤口需要打破伤风| 包饺子什么意思| 今年40岁属什么生肖| 咖啡色五行属什么| 74岁属什么| 吃飞醋是什么意思| 失独是什么意思| 肚脐眼连着什么器官| 梦见死鸡是什么预兆| 什么样的教诲| 1069是什么意思| 为什么会遗精| 707是什么意思| 西替利嗪是什么药| 吃什么补镁| 老年人手抖是什么原因| 暮光是什么意思| 暗的反义词是什么| 给男人补身体煲什么汤| 姜子牙属什么生肖| 下午3点到5点是什么时辰| 偏头痛什么原因引起| 鞭挞是什么意思| 陈皮的功效与作用主要治什么病| 静脉曲张有什么危害吗| 鼠妇吃什么| 生姜和红枣煮水喝有什么作用| 3月3是什么星座| 口嫌体正直什么意思| 便民门诊是做什么的| 鸭跖草用什么除草剂| 宫颈多发纳囊什么意思| chick什么意思| 舒张压和收缩压是什么| 椎间盘轻度膨出是什么意思| 烤箱能做什么美食| 堃什么意思| 荆芥的别名叫什么| 虾滑是什么| 成龙真名叫什么名字| 起伏不定是什么意思| 为什么星星会眨眼睛| 糖尿病早餐吃什么好| 女生的下面长什么样| c代表什么| 骂人是什么意思| 主动脉夹层是什么原因引起的| 洺字五行属什么| 梦见抱小女孩是什么意思| 梦到前女友是什么意思| 百度
Jump to content

青定读什么

From ArchWiki
(Redirected from Append)

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.

碘伏过敏是什么症状 牡丹花是什么颜色的 康乃馨的花语代表什么 正军级是什么级别 蒲公英叶和根的功效有什么不同
小苏打和柠檬酸反应产生什么 henry是什么意思 烈士家属有什么待遇 神父和修女是什么关系 艾滋病有什么症状
一什么山泉 尿毒症什么症状 货号是什么 电解质是什么 pt是什么单位
rt表示什么意思 皮肤黑的人穿什么颜色的衣服显白 山药长什么样 花椒木有什么作用与功效 三个鬼是什么字
韩语欧巴是什么意思hcv8jop3ns9r.cn 抑制素b检测是什么意思hcv8jop1ns1r.cn 吽是什么意思hcv8jop9ns2r.cn 揍是什么意思ff14chat.com 什么是角阀hcv7jop6ns9r.cn
tomorrow什么意思hcv9jop0ns2r.cn 狗狗什么时候打疫苗hcv8jop1ns8r.cn 貘是什么动物hcv8jop4ns3r.cn 硬度不够是什么原因hcv9jop0ns4r.cn 脑梗复查挂什么科hcv9jop4ns8r.cn
什么是cpihcv8jop5ns6r.cn 终身为国是什么生肖520myf.com 高甘油三酯血症是什么意思hcv9jop8ns3r.cn 做扩胸运动有什么好处hcv9jop8ns1r.cn 肚子里有虫子会有什么症状hcv8jop0ns8r.cn
花花世界不必当真是什么歌hcv9jop7ns2r.cn 什么是菱形hcv9jop4ns6r.cn 独一无二指什么生肖hcv8jop5ns5r.cn 揠苗助长是什么意思hcv8jop7ns2r.cn 柱状上皮外移什么意思youbangsi.com
百度