This article explains absolute paths and how they differ from relative paths, getting them, and how symbolic links are handled. FileSystem Paths A path is the location of a file in a file system. It’s the directions to the file in the folder it is located. A path… Read More »Getting the Absolute (Full) and Relative Path In Linux
Here’s a short and sharp article on how to remove a user from a Linux system. These examples will work on the majority of Linux distributions. The userdel Command The userdel command can be run from the Linux shell to remove a user. Here’s the syntax: userdel OPTIONS USERNAME… Read More »Remove a User From the Linux Command Line/Shell – How to Do It
Linux supports multiple users and groups, allowing access to be granted to only the resources required. Here’s how to list users, groups, and group membership. Separating users and groups ensures that different people can’t accidentally interfere with each other’s files and ensures system security by… Read More »How to List Users and Groups in Linux, With Examples
This article will show you how to change the hostname for your Linux device (Debian, Arch, Ubuntu, or RedHat). The methods below should work for the vast majority of current and obsolete Linux Distributions. What is the Hostname? The hostname of a device on the network is the… Read More »How to Change the Hostname in Linux (Debian, Ubuntu, Arch, RedHat)
Q: How can I disable one or several keys on my laptop keyboard in Linux? When I press the DELETE key, it gets stuck and deletes everything 🙂
A: No problem! You can use the following command to remap or disable any key of your keyboard:
xmodmap -e 'keycode <value>=<action>'
For example, you could run the following command to disable your DELETE key:
xmodmap -e 'keycode 107='
How to get the correct keycode
You can get the keycode that corresponds to a specific keyboard button in one of two ways.
The first method is by using the simple command xev. xev opens a window and then monitors “events” such as keystrokes. It is suitable when you are running a GUI.
The second method, which can be run with only the console, is showkey. This command will monitor for keystrokes for 10 seconds, or until a SIGTERM signal is received.
List of all keycodes
The full list of available keycodes and actions assigned to them on UK keyboard is below…
Read More »FAQ: How to disable/remap a keyboard key in Linux?
It’s hard to believe but I didn’t know about Grub fallback feature. So every time when I needed to reboot remote server into a new kernel I had to test it on local server to make sure it won’t panic on remote unit. And if… Read More »Grub Fallback: Boot good kernel if new one crashes
If you add new physical network interface to the hardware that runs XenServer it won’t appear in XenCenter by default. In order to attach it to VMs or change its settings you’ll need to type in a few commands to XenServer’s CLI. 1. Connect XenServer… Read More »Add physical NIC to XenServer
Few will deny that monitoring of Cisco devices is essential part of sysadmin’s job. I personally use Nagios to track states of BGP neighbors on Cisco routers so if one of peers goes down I’ll receive a phone call from Nagios. You may have redundant… Read More »Track Cisco BGP peers using Nagios
In this post you will find top open source software for IP address management (IPAM). If you are sysadmin at organization that holds pool of IP addresses and allocates its parts to clients then you must use IP address management tools to track used, reserved, allocated… Read More »Top Open Source IP Address Management Software
Wget is an elegant command line tool for downloading files over HTTP, HTTPs or FTP. Many of us are using it to just to get or reget files (reget means continue downloading of partially-downloaded file), save web pages with all contents (known as recursive download).… Read More »Wget with Proxy