Skip to content

Magenaut

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

wildcards

cp hidden files with glob patterns

August 9, 2022 by Magenaut

Situation :

Categories Q&A, Unix & Linux Tags cp, dot-files, wildcards, zsh Leave a comment

How to delete all files in a current directory starting with a dot?

August 8, 2022 by Magenaut

I use Ubuntu 14.04 and in a terminal I became root with sudo su and I wanted to delete root’s trash manually. It deleted everything except for a few files that start with a dot. Like .htaccess etc. So I went to that directory (which is “files”) and I ran this command:

Categories Q&A, Unix & Linux Tags command-line, dot-files, shell, wildcards Leave a comment

Is the behaviour of .* to include . and .. defined in LSB or POSIX or some other specification?

August 8, 2022 by Magenaut

Is the behavior of .* to include . and .. defined in LSB or POSIX or some other specification?

Categories Q&A, Unix & Linux Tags dot-files, shell, standard, wildcards Leave a comment

Is it possible to change the order of a glob?

August 8, 2022 by Magenaut

I am trying to show all instances of a particular message from the syslog in chronological order by doing something like the following:

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

Why should ‘Character Classes’ be preferred over ‘Character Ranges’ In Shell (Bash)?

August 8, 2022 by Magenaut

The Linux Command Line (Book – page count 47) says:

Categories Q&A, Unix & Linux Tags bash, command-line, shell, wildcards Leave a comment

Is it possible to reference the most recently modified file in a command line argument?

August 8, 2022 by Magenaut

I frequently download PDF files with heinous numeric file names from my browser. These automatically go into ~/Downloads. Ideally I would like to just be able to open these files with:

Categories Q&A, Unix & Linux Tags bash, command-line, date, files, wildcards Leave a comment

Working of rm/ls with [0-9]

August 8, 2022 by Magenaut

I am learning the shell commands and came across the short tags eg.[0-9],[[:digit:]] etc.. As a proof of concept i tried deleting all the files with the rm command(i know its not a good practise but i am trying to understand how things work),like this

Categories Q&A, Unix & Linux Tags ls, shell, wildcards Leave a comment

Copy only directories with .mp3 files with rsync

August 8, 2022 by Magenaut

I’m trying to copy only folders with .mp3 files in them to another device. And only the .mp3s in them.
The structure looks like this:

Categories Q&A, Unix & Linux Tags rsync, wildcards Leave a comment

Zip all files in directory?

August 8, 2022 by Magenaut

Is there a way to zip all files in a given directory with the zip command? I’ve heard of using *.*, but I want it to work for extensionless files, too.

Categories Q&A, Unix & Linux Tags command-line, wildcards, zip Leave a comment

How can I remove all symbolic links with a special target?

August 7, 2022 by Magenaut

With the command:

Categories Q&A, Unix & Linux Tags rm, symlink, wildcards Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 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