Updated: 30 June, 2019 |
|
The purpose of this chapter is to give the reader a quick look and basic idea of what’s going on beneath the surface of the openSUSE GNU/Linux operating system.
Any modern computer operating system is a very large and complicated contraption - and GNU/Linux distributions are no exception. The Linux kernel is just one of many components. The figure below shows the core components and what their respective roles are.
This figure shows the main components of a GNU/Linux operating system. |
Most users will hardly ever need to work outside their home folder, but nevertheless it’s probably a good idea to have a basic idea about the how the file hierarchy works.
On GNU/Linux you only have one file tree, unlike e.g. Microsoft Windows which has a different file tree for each filesystem/partition - on GNU/Linux separate filesystems/partitions are mounted in folders within a single file tree. The root folder for the file tree is “/” and paths are written using forward slashes.
So a path might look like this in GNU/Linux:
/home/username/Desktop/
In MS Windows a comparable path might look like this:
C:\Documents and Settings\username\Desktop
In GNU/Linux filenames and folders are case sensitive. |
Normal users only have write permission in their /home/ folder, and rarely have any need to work outside of that.
Files and folders starting with ‘.’ (dot) are hidden. You can make them visible in Dolphin file manager via the keyboard shortcut Alt+. or View -> Show Hidden Files in the menubar.
Applications store the user settings and data in hidden folders in the users home folder, e.g. /home/username/.mozilla/ or /home/username/.config/vlc/ etc. If you uninstall/reinstall an application the settings and data will remain in the home folder. To “reset” an application, you just rename or (re)move the settings and/or data hidden in your home folder.
In GNU/Linux configurations and settings are usually stored in human-readable plain text files. Almost any configuration can be done graphically via YaST or various other GUI applications, but nevertheless it can be useful to know the location of some key config files.
System wide configurations are mainly stored in /etc/, user settings are stored in hidden files in the home folder for the individual user.
/etc/fstab | The file system table, file systems/partitions mounted during boot. |
/etc/sysconfig/yast2 | Configuration for YaST. |
/etc/zypp/zypp.conf | Configuration for the software management. |
/etc/samba/smb.conf | Samba configuration ("Windows Network") |
/etc/HOSTNAME | The hostname for the machine. |
/etc/X11/xorg.conf.d/ | X-server configuration files. By default autodetection is used, edit these files if you must configure the X-server. |
/etc/sysconfig/kernel | The kernel. For example loading extra modules during boot. |
/etc/modprobe.d/50-blacklist.conf | Blacklisting kernel modules. |
In case of problems it’s good to know the location of the main log files, most are kept in /var/log/.
/var/log/Xorg.0.log | Log for the X-server. |
/home/username/.xsession-errors | Useful for troubleshooting applications ran as normal user. |
/var/log/YaST2/ | Log files for various YaST modules and components. |
The main system log can be viewed with the YaST module systemd-journal or with the command journalctl:
Read up on journalctl to use it effectively.
Here are some basic troubleshooting tips for GNU/Linux in case an application crashes or won’t start at all.
Reinstalling the software packages almost never solves anything, because the old settings and data will remain in hidden folders in the home folder. |