Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

bash

How to change previous/next word shortcut in bash?

August 9, 2022 by Magenaut

How do I configure Ctrl-Left and Ctrl-Right as previous/next word shortcuts for bash (currently alt-b and alt-f)?

Categories Q&A, Unix & Linux Tags bash, keyboard-shortcuts Leave a comment

Usage of -n and -z in test built in – Bash

August 9, 2022 by Magenaut

Consider the following in bash:

Categories Q&A, Unix & Linux Tags bash, shell, shell-script, test Leave a comment

What characters need to be escaped in files without quotes?

August 9, 2022 by Magenaut

I have browser-based shell/terminal that executes bash commands and I’m escaping spaces but it turns out that parenthesis also need to be escaped. What other characters need to be escaped for file names that are not in quotes?

Categories Q&A, Unix & Linux Tags bash, filenames, quoting, shell Leave a comment

How do I force a user to change a password at the first time login using ssh?

August 9, 2022 by Magenaut

I’m trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did the following so far:

Categories Q&A, Unix & Linux Tags bash, linux, login, pam, ssh Leave a comment

Using “reserved” codes for exit status of shell scripts

August 9, 2022 by Magenaut

I recently came across this list of Exit Codes With Special Meanings from the Advanced Bash-Scripting Guide. They refer to these codes as being reserved and recommend that:

Categories Q&A, Unix & Linux Tags bash, exit, shell-script Leave a comment

How to define ‘tab’ delimiter with ‘cut’ in Bash?

August 9, 2022 by Magenaut

Here is an example of using cut to break input into fields using a space delimiter, and obtaining the second field:

Categories Q&A, Unix & Linux Tags bash, cut Leave a comment

What return/exit values can I use in bash functions/scripts?

August 9, 2022 by Magenaut

I want to know what return values we can use that will not be mistaken by for ex. SIGINT?

Categories Q&A, Unix & Linux Tags bash, exit, exit-status, function, shell Leave a comment

How do i make this script print out multiple boxes?

August 9, 2022 by Magenaut

I have this script that prints out a box frame with Asterisk signs, and I need to make it so that the script prints out multiple boxes under each other. How can I do it?

Categories Q&A, Unix & Linux Tags bash, linux, scripting Leave a comment

Kill all background jobs

August 9, 2022 by Magenaut

Is there a more compact form of killing background jobs than:

Categories Q&A, Unix & Linux Tags bash Leave a comment

“Bookmarks” for bash

August 9, 2022 by Magenaut

Navigating several layers of nested directories is often a pain. On Firefox, it is easy because they have bookmarks. So what I’d like to do to bookmarks a file is to type:

Categories Q&A, Unix & Linux Tags bash, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page28 Page29 Page30 … Page65 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress