≡ Menu

How to undefine and unset a bash environment variable on Linux or Unix

I have set the shell variable. I no longer need the variable. How do I undefine or unset a variable in bash on a Linux or Unix-like desktop system?
[click to continue…]

{ 3 comments }

How to list all iptables rules with line numbers on Linux

I recently added NAT rules on my RHEL 6.x system. How do I see the rules including line numbers that I just added in Linux?
[click to continue…]

{ 0 comments }

How to check boot path (partition) in Linux

How do I identify the boot device or boot path in Linux operating system?
[click to continue…]

{ 5 comments }

FreeBSD find CPU (processor) temperature command

I‘m a new FreeBSD unix user. How do I get the temperature of an Intel or AMD processor (CPU) in FreeBSD using command line option?
[click to continue…]

{ 1 comment }

How to change system’s hostname on HP-UX Unix system

I‘m a new HP-UX system user. How do I set the system hostname using shell prompt on a HP-UX?
[click to continue…]

{ 2 comments }

How to delete a single command from history on a Linux, OS X and Unix Bash shell

I‘m working in Ubuntu bash terminal application and remotely on a RHEL server in cloud platform. I typed the wrong and dangerous command. I no longer wish to remember dangerous command in the history file. How can I remove or delete a single command from bash history file?
[click to continue…]

{ 6 comments }

How to secure and lock down Apple OS X 10.11 (El Capitan) with osxlockdown

Is there is an easy way to audit and lock down (secure) Apple OS X 10.11 (El Capitan) unix operating system?
[click to continue…]

{ 3 comments }

How to backup and restore a partition table on Linux

Is it possible to just backup my Linux partition table and restore it when required? How do I restore partition table if it get deleted by mistake on Linux operating system? How do I backup and restore a GPT partition table on Linux?
[click to continue…]

{ 1 comment }

How to find out zone information for given country on Linux or Unix

How do I find out the current time for each zone name specified on the command line on a Linux, FreeBSD, OS X or Unix-like system? How do I report time zone information for Singapore or Japan on the command line?
[click to continue…]

{ 0 comments }

How To Read CPUID Instruction For Each CPU on Linux With x86info and cpuid Commands

Is there a CPU-Z like a freeware/open source software that detects the central processing unit (CPU) of a modern personal computer in Linux operating system? How can I get detailed information about the CPU(s) gathered from the CPUID instruction, including the exact model of CPU(s) on Linux operating system?
[click to continue…]

{ 0 comments }