How to mount a remote filesystem over SSH with sshfs

How to mount a remote filesystem over SSH with sshfs

SSH (Secure Shell) is a protocol used to establish an encrypted connection with a remote machine using a client-server model: the ssh server runs on the machine we want to access remotely, while a client is used on the machines from which we want to connect. Thanks to sshfs, we can use an existing SSH connection to mount a remote directory in a secure way, without using additional services like NFS or Samba.

Read more

How to extend the Thunar file manager with custom actions

How to extend the Thunar file manager with custom actions

Thunar is the file manager included in Xfce, a free and open source Desktop Environment which implements the traditional desktop metaphor, and has become the favorite of many users which switched to it when the GNOME project introduced the GNOME shell. Thunar is light on resources but doesn’t lack functionalities which can be extended further by creating custom actions.

Read more

How to partition USB drive in Linux

How to partition USB drive in Linux

In order to access a USB drive on Linux, it needs to have one or more partitions on it. Since USB drives are usually relatively small, and only used for temporary storage or to easily transfer files, the vast majority of users will choose to configure just one partition that spans the entire USB disk. However, you can also logically separate the USB drive into different sections if you wanted to use multiple partitions.

Read more

What is /etc directory in Linux

What is /etc directory in Linux

The Linux file system hierarchy was thoughtfully created and has undergone some careful changes since its inception. Linux users may have noticed a few directories that are always present on all systems, such as the /etc directory and a slew of others that reside inside of root. Have you ever wondered what this directory is specifically for, and how it became such a staple for the Linux operating system? In this tutorial, you will learn what the /etc directory is used for on a Linux system.

Read more

How to partition a drive on Linux

How to partition a drive on Linux

Every hard disk, in order to be accessible under Linux, must have at least one partition on it. A partition is a way to logically separate different sections of a disk. For example, a 4 TB hard drive could have four different 1 TB partitions, and all would appear as separate storage systems under the operating system. Alternatively, a hard disk could simply contain a single partition that spans the entire volume. The configuration is entirely up to the user.

Read more

How to keep configuration files under version control with Etckeeper

How to keep configuration files under version control with Etckeeper

On Linux-based operating system the /etc directory is used to hold global configuration files for applications and services. A good set of configurations is really important for a good working system, so being able to keep track of changes and quickly revert them, in case something go wrong, is crucial. Etckeeper helps us achieve this goal keeping configuration files under version control.

Read more

How to list and manage files attributes on Linux

How to list and manage files attributes on Linux

When using Linux we have many ways to manage access to resources: the most basic one is by setting the appropriate UGO/RWX permissions on files and directories. In some occasions we may also want to make use of the setuid, the setgid and the sticky bit. Furthermore, we can use ACLs (Access Control List) in order to achieve an higher level of granularity or implement Mandatory Access Control security such those based SELinux or AppArmor.

In addition to the strategies mentioned above, on most filesystems we can manipulate a set of “attributes” in order, for example, to make a file immutable.

Read more