https://wiki.archlinux.org/api.php?action=feedcontributions&user=Wolfez&feedformat=atomArchWiki - User contributions [en]2024-03-28T17:46:23ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Arch_Handbook&diff=272389Arch Handbook2013-08-24T19:59:20Z<p>Wolfez: forgot something.</p>
<hr />
<div>[[Category:Getting and installing Arch]]<br />
[[Category:System administration]]<br />
{{out of date}}<br />
== Notice ==<br />
This handbook has only just been started. It's currently a rather bare outline. Please edit it and make it better! Look at the [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ FreeBSD Handbook] as a style guide.<br />
<br />
Most sections should be a summary, with a link to the main article on the subject.<br />
<br />
== Getting Started ==<br />
<br />
=== Introduction ===<br />
Arch linux is a lightweight and flexible linux distribution that tries to Keep It Simple.<br />
There are official packages optimized for the i686 and x86-64 architectures. There is also a community-operated package repository.<br />
See the pages in [[:Category:About Arch|this category]]<br />
<br />
=== Installing Arch Linux ===<br />
The full install guide is [[Installation Guide|here]] and the install CDs are available [https://www.archlinux.org/download/ here]. If you would like a more detailed installation guide, please see the [[Beginners' Guide]].<br />
<br />
=== Linux Basics ===<br />
A few basics on the file system and command line, for people starting Unix/Linux with Arch.<br />
<br />
'''How to change directory:'''<br />
<br />
cd /name/of/directory<br />
<br />
e.g.<br />
<br />
cd /etc/pacman.d<br />
<br />
'''How to make a directory:'''<br />
<br />
mkdir /path/to/new/directory<br />
<br />
e.g. <br />
<br />
mkdir /home/archuser/newfolder<br />
<br />
'''How to remove an (empty) directory:'''<br />
<br />
rm -r /path/to/empty/directory<br />
<br />
'''How to remove a non-empty directory:'''<br />
<br />
rm -r /path/to/non_empty/directory<br />
<br />
'''How to list files in a directory:'''<br />
<br />
All files: (except hidden files)<br />
<br />
ls<br />
<br />
All files: (including hidden files)<br />
<br />
ls -a<br />
<br />
All files, hidden files and their properties:<br />
<br />
ls -la<br />
<br />
Files with the .avi file extension only:<br />
<br />
ls *.avi<br />
<br />
'''How to move a file:'''<br />
<br />
mv /path/to/old/file.ext /path/to/new/file.ext<br />
<br />
e.g.<br />
<br />
mv /home/archuser/compressed.zip /home/archuser/myfiles/compressed2.zip<br />
<br />
'''How to copy a file:'''<br />
<br />
cp /path/to/file.txt /path/to/copied/file.txt<br />
<br />
'''How to remove a file:'''<br />
<br />
rm /path/to/file.txt<br />
<br />
e.g.<br />
<br />
rm /home/archuser/file.txt<br />
<br />
'''How to show the contents of a file:'''<br />
<br />
cat /path/to/file.txt<br />
<br />
'''How to make a file executable:'''<br />
<br />
chmod +x /path/to/script.sh<br />
<br />
'''How to (search the entire filesystem for) a file called euwfh.avi'''<br />
<br />
cd /<br />
<br />
find -name euwfh.avi<br />
<br />
'''How to mount a partition:'''<br />
<br />
mount /dev/sdX1 /media/mountpoint<br />
<br />
e.g.<br />
<br />
mount /dev/sda1 /media/folder<br />
<br />
<br />
'''How to show how much space is left/used on (all mounted) partitions:'''<br />
<br />
df -h<br />
<br />
'''How to show all running processes:'''<br />
<br />
ps -A<br />
<br />
'''How to stop an annoying process called "EvilTrojan":'''<br />
<br />
killall EvilTrojan<br />
<br />
'''How to show an unintelligible manual for a program "ultracompressor"'''<br />
<br />
man ultracompressor<br />
<br />
=== Installing, removing, updating and managing software: pacman ===<br />
See [[pacman]].<br />
<br />
=== Graphical Desktop Environments ===<br />
{{Graphical user interface overview}}<br />
<br />
== Common Tasks ==<br />
<br />
=== Desktop Applications ===<br />
Web browsers, office suites, etc.<br />
<br />
=== Multimedia ===<br />
Video players, music jukeboxes, photo management, how to get codecs.<br />
<br />
=== Printing ===<br />
CUPS installation and configuration, finding drivers.<br />
<br />
== System Administration ==<br />
<br />
=== Configuration and Tuning ===<br />
[[Systemd]] is used for most administrative tasks.<br />
<br />
=== Users and Basic Account Management ===<br />
Creating and managing users with command-line utilities.<br />
<br />
Users are created with <code>useradd</code>. See [[Users and Groups]] for more information.<br />
<br />
== Networking ==<br />
<br />
=== Network Configuration ===<br />
How networks are set up in Arch.<br />
<br />
=== Servers ===<br />
Mail, web, SSH server installation and configuration.<br />
<br />
=== Firewalls ===<br />
See [[Firewalls]], [[iptables]], [[Simple Stateful Firewall]].</div>Wolfezhttps://wiki.archlinux.org/index.php?title=Arch_Handbook&diff=272388Arch Handbook2013-08-24T19:58:46Z<p>Wolfez: changed rmdir into rm -r cause it is easier ;)</p>
<hr />
<div>[[Category:Getting and installing Arch]]<br />
[[Category:System administration]]<br />
{{out of date}}<br />
== Notice ==<br />
This handbook has only just been started. It's currently a rather bare outline. Please edit it and make it better! Look at the [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ FreeBSD Handbook] as a style guide.<br />
<br />
Most sections should be a summary, with a link to the main article on the subject.<br />
<br />
== Getting Started ==<br />
<br />
=== Introduction ===<br />
Arch linux is a lightweight and flexible linux distribution that tries to Keep It Simple.<br />
There are official packages optimized for the i686 and x86-64 architectures. There is also a community-operated package repository.<br />
See the pages in [[:Category:About Arch|this category]]<br />
<br />
=== Installing Arch Linux ===<br />
The full install guide is [[Installation Guide|here]] and the install CDs are available [https://www.archlinux.org/download/ here]. If you would like a more detailed installation guide, please see the [[Beginners' Guide]].<br />
<br />
=== Linux Basics ===<br />
A few basics on the file system and command line, for people starting Unix/Linux with Arch.<br />
<br />
'''How to change directory:'''<br />
<br />
cd /name/of/directory<br />
<br />
e.g.<br />
<br />
cd /etc/pacman.d<br />
<br />
'''How to make a directory:'''<br />
<br />
mkdir /path/to/new/directory<br />
<br />
e.g. <br />
<br />
mkdir /home/archuser/newfolder<br />
<br />
'''How to remove an (empty) directory:'''<br />
<br />
rm -r /path/to/empty/directory<br />
<br />
'''How to remove a non-empty directory:'''<br />
<br />
rmdir -r /path/to/non_empty/directory<br />
<br />
'''How to list files in a directory:'''<br />
<br />
All files: (except hidden files)<br />
<br />
ls<br />
<br />
All files: (including hidden files)<br />
<br />
ls -a<br />
<br />
All files, hidden files and their properties:<br />
<br />
ls -la<br />
<br />
Files with the .avi file extension only:<br />
<br />
ls *.avi<br />
<br />
'''How to move a file:'''<br />
<br />
mv /path/to/old/file.ext /path/to/new/file.ext<br />
<br />
e.g.<br />
<br />
mv /home/archuser/compressed.zip /home/archuser/myfiles/compressed2.zip<br />
<br />
'''How to copy a file:'''<br />
<br />
cp /path/to/file.txt /path/to/copied/file.txt<br />
<br />
'''How to remove a file:'''<br />
<br />
rm /path/to/file.txt<br />
<br />
e.g.<br />
<br />
rm /home/archuser/file.txt<br />
<br />
'''How to show the contents of a file:'''<br />
<br />
cat /path/to/file.txt<br />
<br />
'''How to make a file executable:'''<br />
<br />
chmod +x /path/to/script.sh<br />
<br />
'''How to (search the entire filesystem for) a file called euwfh.avi'''<br />
<br />
cd /<br />
<br />
find -name euwfh.avi<br />
<br />
'''How to mount a partition:'''<br />
<br />
mount /dev/sdX1 /media/mountpoint<br />
<br />
e.g.<br />
<br />
mount /dev/sda1 /media/folder<br />
<br />
<br />
'''How to show how much space is left/used on (all mounted) partitions:'''<br />
<br />
df -h<br />
<br />
'''How to show all running processes:'''<br />
<br />
ps -A<br />
<br />
'''How to stop an annoying process called "EvilTrojan":'''<br />
<br />
killall EvilTrojan<br />
<br />
'''How to show an unintelligible manual for a program "ultracompressor"'''<br />
<br />
man ultracompressor<br />
<br />
=== Installing, removing, updating and managing software: pacman ===<br />
See [[pacman]].<br />
<br />
=== Graphical Desktop Environments ===<br />
{{Graphical user interface overview}}<br />
<br />
== Common Tasks ==<br />
<br />
=== Desktop Applications ===<br />
Web browsers, office suites, etc.<br />
<br />
=== Multimedia ===<br />
Video players, music jukeboxes, photo management, how to get codecs.<br />
<br />
=== Printing ===<br />
CUPS installation and configuration, finding drivers.<br />
<br />
== System Administration ==<br />
<br />
=== Configuration and Tuning ===<br />
[[Systemd]] is used for most administrative tasks.<br />
<br />
=== Users and Basic Account Management ===<br />
Creating and managing users with command-line utilities.<br />
<br />
Users are created with <code>useradd</code>. See [[Users and Groups]] for more information.<br />
<br />
== Networking ==<br />
<br />
=== Network Configuration ===<br />
How networks are set up in Arch.<br />
<br />
=== Servers ===<br />
Mail, web, SSH server installation and configuration.<br />
<br />
=== Firewalls ===<br />
See [[Firewalls]], [[iptables]], [[Simple Stateful Firewall]].</div>Wolfez