Linux prevent unprivileged users from viewing dmesg command outputsnixCraft...
I want to restrict both normal users and root user inside LXD container 'hypervisor' from viewing and using dmesg command output. How do I prevent non-root (unprivileged) Linux users from viewing the...
View ArticleHow to install htop on CentOS Linux 8nixCraft
I am a new user of CentOS Linux 8 operating system. How do I install htop on CentOS 8 using the yum command?The post How to install htop on CentOS Linux 8 appeared first on nixCraft.
View ArticleHow to delete empty lines using sed command under Linux / UNIXnixCraft...
Ineed to delete all empty lines but could not figure out sed command for the same. How do I delete all empty lines with sed under Linux or Unix-like systems?The post How to delete empty lines using sed...
View ArticleFreeBSD Find Out All Installed Hard Disk Size InformationnixCraft Updated...
How do I find out all installed hard disk drive names under a FreeBSD operating system without rebooting the server? How do I use the equivalent of fdisk -l in Linux, with FreeBSD to list all hard...
View ArticleHow to Create a new user account in CentOS 7/8nixCraft
How do I create a new user account on CentOS 7/8 Linux server using command-line options? How do I create a new user account with sudo access on CentOS 8 Linux server?The post How to Create a new user...
View ArticleHow to install and use Nginx on CentOS 8nixCraft
How do I Install Nginx on CentOS 8 Linux server? How can configure the latest version of Nginx web server on a CentOS Enterprise Linux 8 server using the CLI and host a static site?The post How to...
View ArticleBash check if process is running or not on Linux / UnixnixCraft Updated...
I am new to Linux shell scripting. I am using a CentOS 7 Linux and Ubuntu 18.04 LTS server in the cloud. How do I check if a process is running or not on Linux? How do I determine whether a process is...
View ArticleLinux shell script to reduce PDF file sizenixCraft
Here is a handy and useful Linux and Unix shell script that reduce PDF file size using Ghostscript. No need to upload your PDF file to the shady third-party website. Just do it from the terminal. I...
View ArticleBash Assign Output of Shell Command To VariablenixCraft Updated Tutorials/Posts
How do I assign the output of a shell command to a shell variable under Unix like operating system? For example, I want to store the date command output to a variable called $now. How do you do that?...
View Article[How to] Linux Change or Rename User Name and UIDnixCraft Updated...
How do I change user name (rename user name) or UID under a Linux operating system using command line tools? How do I change or rename username in Linux?The post [How to] Linux Change or Rename User...
View ArticleHow to check and list installed packages in CentOS LinuxnixCraft
How do I check installed packages in CentOS Linux version 6.x/7.x/8.x? How can I List installed packages on CentOS Enterprise Linux server?The post How to check and list installed packages in CentOS...
View ArticleHow to generate RSS 2.0 feed quickly using PythonnixCraft Updated...
I wanted to generate RSS 2.0 feeds in Python. Nothing fancy but for certain tasks I needed it something that is quick and just works out of the box. I found rfeed. It is a library to generate RSS 2.0...
View ArticleHow to set up a firewall using FirewallD on OpenSUSE LinuxnixCraft
I am a new OpenSUSE Linux 15.x sysadmin. How do I set up a firewall using FirwallD on OpenSUSE Linux 15.1?The post How to set up a firewall using FirewallD on OpenSUSE Linux appeared first on nixCraft.
View ArticleConfigure Nginx to use TLS 1.2 and 1.3 onlynixCraft
How do I enable and configure TLS 1.2 and 1.3 only in Nginx web server?The post Configure Nginx to use TLS 1.2 and 1.3 only appeared first on nixCraft.
View ArticleDebian / Ubuntu Linux Delete Old Kernel Images CommandnixCraft Updated...
I am a new Ubuntu Linux user and noticed that old kernel still exists in my system. Why doesn't Ubuntu remove old kernels automatically? How do I delete old unused kernel images to free disk space. How...
View ArticleHow to add or mount directory in LXD (Linux container)nixCraft
I have two LXD containers running. One is for Nginx, and another is for processing data. I need to share data between two containers. How do I add or mount a shared directory between two?The post How...
View ArticleHow to install and use Nginx on OpenSUSE Linux servernixCraft Updated...
How do I install and configure the latest version of Nginx web server on OpenSUSE Linux server using the CLI and host a static site?The post How to install and use Nginx on OpenSUSE Linux server...
View ArticleUnderstanding /etc/passwd File FormatnixCraft Updated Tutorials/Posts
Can you explain /etc/passwd file format for Linux and Unix-like operating systems?The post Understanding /etc/passwd File Format appeared first on nixCraft.
View ArticleVi / Vim Save And Quit The Editor CommandnixCraft Updated Tutorials/Posts
{Updated} I am a new vi / vim text editor user. How do I quit the vi editor and save my changes under a Linux or Unix like operating systems? Can you tell me command to save and quit file in vim?The...
View ArticleAdd / Create a Sudo User on CentOS Linux 8nixCraft
How do I add / create a sudo user on CentOS Linux 8 using the command line?The post Add / Create a Sudo User on CentOS Linux 8 appeared first on nixCraft.
View Article