Linux
How to Disable Sleep on Mac When Closing the Lid
Closing a MacBook lid normally puts the Mac to sleep. If you need a task, download, or remote session to continue while the lid is closed, you can disable system sleep with pmset. Important: This setting disables sleep system-wide, not ... [Read More]
Vim – Change Color Scheme for Easy Readability
Set the 'desert' color scheme for Vim. easier on the eyes on dark backgrounds ... [Read More]
How to Configure Static IP on Debian 10
Configure a static IP address on a Debian 10 server using the command line ... [Read More]
MySQL Query All Users and User Premissions
List all the users and user permissions in a MySQL database using the shell ... [Read More]
How to Check if Linux needs Reboot after Updating?
Does your linux system need a reboot after an updating session? Let's find out! ... [Read More]
Use the ls command to list only a directory, NOT it’s contents in Linux
Learn how to get the filesystem information of a directory itself, NOT it's contents, using ls in unix ... [Read More]
How to Delete Traces from Linux History
So you want to delete all traces of certain commands from the Bash history? Here's how to do it! ... [Read More]
Create and Expand LVM Volumes – Step by Step Guide
Click here for a quick summary on how to create and administer volume groups and volumes in LVM ... [Read More]
How to Force cp in Linux
Is it familiar? This annoying confirmation prompt appears on certain linux distribution when you try to copy a file that already exists at the destination. Here's how to solve this one and for all ... [Read More]
Bash Tips for Daily Use
Have you ever needed to edit a config file after checking it's permissions, finding yourself typing in the same long file path twice in the shell? Or wondering how you can rerun the command you used a few steps ago ... [Read More]
How to search in VIM
Legend has it a dev once said: "I've been using vim for 2 years now, mostly because I cannot figure out how to exit it!" In this article we walk through the ways how to search certain words, or strings ... [Read More]
How to Configure NFSv4 and NFSv3 on CentOS?
Installing an NFS file server on linux mainly consists of three short steps: install the NFS package, then configure (or in another words export) the NFS shares and lastly set the built-in firewall to allow incoming NFS queries ... [Read More]
Mount NFS, SMB shares and local volumes in Linux | Cheat Sheet
This a quick guide on how to mount different type of volumes or shares in Linux. We go through the most common scenarios: local volumes, NFS and SMB shares. For each we discuss the manual way to mount them, also ... [Read More]
Specifying granular UNIX file permissions using SETFACL
UNIX type systems use the octal file permission model, that is limited in terms of setting access permissions for specific users and groups. By default there are only three attributes to be set on files and directories: for the owner, ... [Read More]
Expanding an LVM volume with a new disk
Time to time we can face the problem that our storage is running out of space on our Linux box. Now what options do we have? We can attach a new storage to the system and mount it in the ... [Read More]
CentOS 8 Install in Text Mode
Text Mode Many times it is preferable to run the CentOS linux installer in text mode, avoiding the GUI. For instance when using an older machine with less resources or when deploying a VM when console access might be limited, ... [Read More]
