Category: Linux

Linux Server Managment

How to view Linux kernel parameters for currently booted system nixCraft

How do I display or view Linux kernel parameters for currently running/booted kernel? How can I see Linux kernel command line parameters?To display the Linux kernel command line parameters given for the current booted system use any one of the following Linux commands:sysctl -asysctl -a | moresysctl -a | grep 'something'cat /proc/cmdline How to view Linux kernel parameters using /proc/cmdline On Linux, one can use a boot manager such as lilo or grub.…

Linux Shell – How To Remove Duplicate Text Lines nixCraft Updated Tutorials/Posts

I need to sort data from a log file, but there are too many duplicate lines. How do I remove all duplicate lines from a text file under GNU/Linux?You…
blank

Linux / Unix Desktop Fun: Christmas Tree For Your Terminal nixCraft Updated Tutorials/Posts

Let us create Linux or Unix console Christmas tree and snow on your Linux desktop just for fun and profit. First, you need to install a Perl module called Acme::POE::Tree.…
blank

Linux ip Command Examples nixCraft Updated Tutorials/Posts

I am a new Linux system admin user. How do I use ip command line utility to display or configure networking, routing, and tunnels on Linux operating systems?…
blank

How to ignore invalid and self signed ssl connection errors with curl nixCraft Updated Tutorials/Posts

I wanted to curl command to ignore SSL certification warning. Does curl command have a --no-check-certificate option like wget command on Linux or Unix-like system?You need to pass the -k or --insecure option to the curl command.…
blank

sudo: Sorry, you must have a tty to run sudo Error on a Linux and Unix nixCraft Updated Tutorials/Posts

I‘m trying to run the following command:ssh user@box.example.com sudo command1 /path/to/fileBut, an error is displayed follows: sudo: sorry, you must have a tty to run sudo OR sudo: no tty present and no askpass program specified How do I fix this problem on Linux or Unix based systems?This…
blank

Empty or Delete a log files in Linux or UNIX nixCraft Updated Tutorials/Posts

My web server’s log file size is quite huge or large. How do I delete a log file in Linux without disturbing running application? Is there a proper way to clear log files on Unix?You…
blank

Display Linux logo with hardware Info using screenfetch / linux_logo nixCraft Updated Tutorials/Posts

Do you want to display a super cool logo of your Linux distribution along with basic hardware information? Look no further try awesome screenfetch and linux_logo utilities.…
blank

How do I know if my Linux is 32 bit or 64 bit? nixCraft

I need to find out if my Linux server is running on 32-bit or 64-bit system. How do I know if my Linux is 32 bit or 64 bit?To…
blank

FreeBSD wget cannot verify certificate, issued by Let’s Encrypt nixCraft

I installed GNU wget utility on FreeBSD as explained here. However, whenever I use the wget command to download stuff from the Internet, it says:   ERROR: cannot verify download.freebsd.org’s…