nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

How To Run Commands When You Log Out Using ~/.bash_logout

Posted: 07 Jul 2021 04:06 AM PDT


{Updated} When you exit a login Bash session/shell, you can run commands on macOS/Linux/Unix. Useful to remove bash/mysql history or run backup job so that files are backed up as soon as you exit a login shell.
The post How To Run Commands When You Log Out Using ~/.bash_logout appeared first on nixCraft.

How to convert man page to HTML on Linux and Unix

Posted: 07 Jul 2021 04:02 AM PDT

See all UNIX related articles/faq

We can easily convert all Linux man pages to HTML, text, or pdf format. To display online manual documentation pages in terminal on Linux, macOS, *BSD, and Unix-like systems, we use the man command. However, some man pages are long and might be hard to search when using less or most as a pager. Hence, we can convert them to HTML format and skimmed them in a web browser such as Firefox.

The post How to convert man page to HTML on Linux and Unix appeared first on nixCraft.

Linux help command examples and syntax

Posted: 07 Jul 2021 03:01 AM PDT


{Updated} You can use the help command to display help about built-in Bash commands. A shell builtin is nothing but a command or a function, called from a shell, that is executed directly in the shell itself.

The post Linux help command examples and syntax appeared first on nixCraft.