cyberciti.biz

VN:F [1.9.22_1171]
Rating: 6.0/10 (2 votes cast)

online community of new and seasoned Linux / Unix sysadmins.

How to find hard disk (SSD) serial numbers in Linux

16 November 2024 @ 9:38 pm

See all GNU/Linux related FAQ You need to use the smartctl command to display the hard disk (SSD) serial numbers in Linux. This is useful when changing your hard disk if it goes bad. Love this? sudo share_on: Twitter - Facebook -

How to install kvm-ok on Debian or Ubuntu Linux

16 November 2024 @ 6:54 am

See all Linux Kernel Based Virtual Machine related FAQs/Howtos The KVM-ok command command will tell you if your Debian or Ubuntu Linux-powered server can host hardware-accelerated KVM virtual machines. KVM (Kernel-based Virtual Machine) is a free and open-source virtualization technology that is used with every Linux kernel. In other words, KVM will make your Linux computer into a hypervisor, allowing you to run multiple isolated virtual machines (VMs) on a single physical machine. However, KVM depends upon CPU hardware virtualization extensions like Intel VT-x or AMD-V to provide high-performance virtual machines. This support must be enabl

zcommands: Read gzip Compressed Text Files On a Fly on Linux and Unix

1 November 2024 @ 8:34 pm

zcommands Read gzip Compressed Text Files On a Fly on Linux and Unix Linux and Unix like operating systems comes with z* commands. These commands allow you to read gzip compressed text files using zless, zcat, zmore, and friends commands. The gzip command reduces the size of the files using Lempel-Ziv coding (LZ77). Whenever possible, each file is replaced by one with the extension .gz while keeping the same ownership modes, access, and modification times. z* commands have some cool usage too, such as display the current time in different zonename. Love this? sudo share_on:

How do I unzip multiple / many files under Linux?

27 September 2024 @ 7:56 pm

See all Troubleshooting related FAQ I have lots of files in a directory called /disk2/images/. All files are in zip file format, so I am using the following command to extract zip files:      unzip *.zip The command result into an error which read as follows:      caution: filename not matched How do I unzip multiple or many zip files under a Linux/Unix-like system? Love this? sudo share_on:

Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File )

21 September 2024 @ 12:33 pm

See all GNU/Linux related FAQ Most Linux and UNIX-like system configuration files are documented using comments, but sometimes I just need to see a line of configuration text in a config file. How can I view just the uncommented configuration file directives from squid.conf or httpd.conf file? How can I strip out comments and blank lines on a Linux or Unix-like system? Love this? sudo share_on: Twitter -

Linux turn OFF password expiration / aging

20 September 2024 @ 11:46 am

The /etc/shadow file stores the actual password in encrypted format using a hash (salted) function for the user's account with additional properties related to the user passwords, such as password expiration date or password aging. The /etc/passwd stores usernames and their properties, such as home directory, login shell, and more. The password expiration information for a user is contained in the last six fields. The Linux password expi

Linux / UNIX: DNS Lookup Command

13 September 2024 @ 11:37 am

See all GNU/Linux related FAQ How do I perform DNS lookup under Linux, UNIX, or Apple macOS (OS X) operating systems without using 3rd party websites for troubleshooting DNS usage? Love this? sudo share_on: Twitter - Facebook -

Linux Copy One Hard Disk to Another Using dd Command

9 September 2024 @ 8:04 pm

See all GNU/Linux related FAQ How can I copy one hard disk to another using the dd, ddrescue, or dcfldd commands? Love this? sudo share_on: Twitter - Facebook - LinkedIn -

Shell script to set up an LXD / Incus (Linux Containers) lab for testing purpose

16 August 2024 @ 12:06 pm

See all GNU/Linux related FAQ LXD or Incus is a Linux operating system-level container system. You can build over 25+ Linux distros for testing, fun, and profit. You can even run GUI apps inside those containers and get output displayed back to your X display easily. For example, you can run Firefox in one Linux container for banking needs with custom add-ons, including specific firewall rules just for allowing outgoing banking and nothing else. You can have another container to run Chromium/Edge/FF for social media. Of course, it is not a replacement for something like Qubes OS, but you can do many things in an isolated environment. You can try a new Linux distro without th

How To check LXD/Incus container BTRFS disk usage on Linux

15 August 2024 @ 9:42 pm

See all GNU/Linux related FAQ Here is a quick and dirty shell script I put to check LXD or Incus container size and how much space they are taking on the BTRFS subvolume. Naturally, you must run the script as a root user, and LXD or Icnus must be configured with BTRFS storage backend on Linux operating systems. See how to set up and install LXD on Ubuntu 20.04 LTS or installing Incus on