Skip to content

Magenaut

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

shell

Find directories that do not contain subdirectories

August 9, 2022 by Magenaut

I’m writing script is ksh. Need to find all directory names directly under the current directory which contain only files, not subdirectories.

Categories Q&A, Unix & Linux Tags directory, find, ksh, ls, shell Leave a comment

Understanding environmental variables in different contexts

August 9, 2022 by Magenaut

Trying to understand the behaviour of the environment in Linux (Ubuntu 13.04 concretely), I’ve find different situations where setting envirionment variables are used or defined for/in different contexts. For example, if I check, locale, I get:

Categories Q&A, Unix & Linux Tags environment-variables, locale, process, shell Leave a comment

” sudo: source: command not found”

August 9, 2022 by Magenaut

Process model

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

How to get mount point of filesystem containing given file

August 9, 2022 by Magenaut

I am looking for a quick way to find the mount point of the file system containing a given FILE. Is there anything simpler or more direct than my solution below?

Categories Q&A, Unix & Linux Tags filesystems, mount, shell Leave a comment

What prevents stdout/stderr from interleaving?

August 9, 2022 by Magenaut

Say I run some processes:

Categories Q&A, Unix & Linux Tags osx, output, shell, stderr, stdout Leave a comment

Where is the log of used commands in Linux?

August 9, 2022 by Magenaut

In Linux, generally we use a lot of commands and it is difficult to remember all of them.

Categories Q&A, Unix & Linux Tags command-history, shell, utilities Leave a comment

grep and escaping a dollar sign

August 9, 2022 by Magenaut

I want to know which files have the string $Id$.

Categories Q&A, Unix & Linux Tags grep, quoting, regular-expression, shell Leave a comment

How to search for a word in entire content of a directory in linux

August 9, 2022 by Magenaut

need to search for something in entire content

Categories Q&A, Unix & Linux Tags find, grep, linux, shell, xargs Leave a comment

What’s a good way to filter a text file to remove empty lines?

August 9, 2022 by Magenaut

I have a .csv file (on a mac) that has a bunch of empty lines, e.g.:

Categories Q&A, Unix & Linux Tags awk, sed, shell, text-processing Leave a comment

How can I detect if I’m in a subshell?

August 9, 2022 by Magenaut

I’m trying to write a function to replace the functionality of the exit builtin to prevent myself from exiting the terminal.

Categories Q&A, Unix & Linux Tags bash, exit, shell, subshell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page26 Page27 Page28 … Page46 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