After reading this short shell scripting tutorial, you will be able to to create and execute your own Bash shell script. No previous knowledge of shell scripting is required. However, you are expected to have some knowledge of how to start a command line terminal and how to edit text files with some text editor of your choice.
Every program you run from your working shell is, to the Linux system, regarded as a process. Each process, except
init, has its parent identified by PPID (parent process ID). When you start a process using your current shell, the shell itself becomes a parent for your newly started process. The trouble with this approach is that this may not always be desirable, since when the parent process is terminated, its child dies with it.
inxi Linux command can be used to see various system information and other handy bits of data right from your terminal. The command is ordinarily not installed by default. However, it is a small software package that provides access to the command, and it proves especially useful to system administrators and power users.
Although most Linux users will use a GUI tool to retrieve weather information, it is also possible to do get a weather forecast from the command line. Whether you are stubborn command line user or you wish to automate flower watering using your Linux system and cron, there are several different options that can do the job. Some tools even allow you to retrieve information such as current outside temperature, wind, pressure, humidity, altitude, and more, directly from your Linux terminal.
netstat Linux command is used by system administrators to see information about network connections. Netstat is a powerful utility that can print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. It has been superseded by the ss command in recent years, but is still a viable tool for network diagnostics and troubleshooting.
If you are a Windows user and do not want to take the full plunge into Linux, Windows Subsystem for Linux can be a fair compromise to at least give you some Linux capabilities on your Windows sytem. Ubuntu 22.04 is a great operating system to install on WSL, and definitely the most popular of the Linux distributions currently offered. Both Windows 10 and Windows 11 systems are capable of installing Ubuntu 22.04 through WSL.
If you are having trouble booting into your Ubuntu 22.04 system, there is a tool called Boot Repair that can remedy a broad range of frequent issues. Usually trouble with booting can be due to the GRUB boot menu or a corrupt file in the
/boot directory. Whatever the case may be, Boot Repair is an excellent software to help us start troubleshooting.
The best way to keep your Ubuntu 22.04 system and files completely secure in the case of theft is to enable full disk encryption. This way, if your device is stolen or someone is sitting at your desk and trying to boot into your PC, they will need to know your password in order to mount any partitions. Even if they access the hard drive content through other means, all files would be encrypted and no one could read their contents.
The following tutorial explains how to mount USB drive in Linux system using terminal and shell command line. If you are using desktop manager, you will most likely be able to use it to mount USB drive for you.
Samba is a free and open source interoperability suite of programs which allows us to share files and printers between machines running Linux or Windows. A Samba share is pretty easy to configure and can easily be accessed on clients, since the vast majority of Linux file explorers has built-in support samba. In certain situations, however, we may want to mount a Samba share at boot, just like a normal filesystem on a specified mountpoint.
Grub Customizer is a software package that does exactly as the name would imply. It allows the user to customize different aspects of the grub boot menu – such as the order that entries appear in the list, how long grub waits before selecting a default system to boot to, etc.
Firewalld is the default high-level firewall manager on the Red Hat family of distributions. One of its peculiarities is that it defines a series of so called firewall zones: each zone can be considered like a different level of trust and can be configured to allow traffic through a specific set of ports. While Firewalld comes with some predefined zones which can be easily examined and modified, sometimes we may want to create our custom zones from scratch.