#DIRNAME
Ok one more, I'm sorry for spamming.

zoxide. Change dirs to any previously visited dir with "z dirname". Fantastic for hopping between lots of git repos.

https://github.com/ajeetdsouza/zoxide/

Install via mise or cargo.
GitHub - ajeetdsouza/zoxide: A smarter cd command. Supports all major shells.
A smarter cd command. Supports all major shells. Contribute to ajeetdsouza/zoxide development by creating an account on GitHub.
github.com
November 23, 2026 at 11:27 AM
WP-VCD malware can hide behind one short include line in an otherwise normal WordPress plugin file. Learn why class.plugin-modules.php is a red flag and why this malware can return. #WordPressSecurity

https://www.mdpabel.com/blog/wp-vcd-malware-wordpress-removal/
WP-VCD Malware in WordPress: How It Spreads, What It Breaks, and Why It Comes Back | MD Pabel
During a recent WordPress malware investigation, I found this code at the beginning of a plugin file: <?php if (file_exists(dirname(__FILE__) . ‘/class.plugin
www.mdpabel.com
October 22, 2026 at 6:00 PM
Removing Directories in Linux Without Deleting the Wrong Thing
Deleting a directory in Linux is easy; choosing the right command for what’s inside it takes a little more care. `rmdir` stops if anything remains. `rm -r` deletes a directory tree, so a typo or unexpected path can remove more than you intended. ## Choose the command by what you want removed For an empty directory, use `rmdir`: rmdir dirname It removes the directory only if it is empty. Hidden files count as contents, so a directory that looks empty in a regular `ls` listing may still make `rmdir` fail. For a directory that contains files or subdirectories, use recursive removal: rm -r dirname The `-r` option tells `rm` to descend into the directory and delete its contents before removing the directory itself. This is permanent from the command line, so inspect the target first if there’s any doubt. pwd ls -la dirname `pwd` confirms your current location; `ls -la` shows the target’s contents, including hidden files. This is especially useful over SSH, where a familiar directory name might exist in more than one place. ## What `-f` changes—and what it doesn’t You’ll often see this command: rm -rf dirname `-r` makes the removal recursive. `-f` suppresses confirmation prompts and ignores missing paths. It does **not** make `rm` recursive by itself: `rm -f dirname` still won’t remove a directory containing files. Use `-f` only when you intend to skip prompts. If you want to review each removal as it happens, use interactive mode instead: rm -ri dirname Be particularly cautious with commands assembled from variables or wildcards. In a script, check that a path variable is set and points where you expect before using it in a destructive command. Don’t rely on `rm`’s safeguards to catch every dangerous path construction. There’s also a symlink detail worth knowing: if `dirname` is a symbolic link to a directory and you want to remove just the link, use `rm dirname` without a trailing slash. A trailing slash can make the path resolve through the link and act on the target’s contents. When you’re unsure what a path refers to, inspect it before deleting. ## Empty several directories, or clear one in place `rmdir` can remove a chain of directories from the end upward, but only while each one is empty: rmdir -p parent/child/grandchild It tries `grandchild`, then `child`, then `parent`, and stops if a directory still contains something. If you want to remove several directory trees, pass their paths to one command: rm -r dir1 dir2 dir3 Each path is processed independently; an error on one does not necessarily prevent the others from being processed. Check every path before running the command. Sometimes the goal is to empty a directory while keeping the directory itself—for example, because its ownership or permissions should remain unchanged. Use `find` for that: find dirname -mindepth 1 -delete `-mindepth 1` skips the starting directory and selects its contents. This also catches hidden files, unlike a simple `dirname/*` shell glob, which normally skips names beginning with a dot. ## When deletion fails If `rmdir` reports that the directory is not empty, inspect it with `ls -la dirname`. If you do intend to remove its contents, switch to `rm -r` rather than trying to force `rmdir`. If `rm` says “Is a directory,” you used it without `-r`. Use `rmdir` for an empty directory or `rm -r` when you intend to remove a tree. A “Permission denied” error may be about the **parent** directory, not the directory you’re deleting. Removing a directory entry requires appropriate permissions on its parent. Check the parent’s permissions and your current user: ls -ld . whoami id The sticky bit can add ownership restrictions in shared directories such as `/tmp`. If you need a refresher on what permission changes mean, this guide to changing file permissions in Linux explains the basics. Avoid broad fixes such as `chmod 777`; they can make a directory writable by everyone. ## Shell commands and SFTP are different If you’re connected with an SFTP client rather than an interactive shell, don’t assume shell commands work there. SFTP has its own command set: its `rmdir` removes an empty remote directory, while removing a non-empty tree may require shell access or a recursive-delete feature in your client. The OpenSSH SFTP command reference covers the distinction and the available commands. Before a recursive delete, verify the location and target. Use `rmdir` when you want Linux to refuse if anything remains; use `rm -r` only when you mean to delete the directory and its contents. Reserve `-f` for cases where suppressing prompts and ignoring missing paths is intentional. I originally published a more detailed version of this guide on the SSHFlow blog. I'm also building SSHFlow — an SSH client where every server gets its own workspace for terminals, SFTP, code, and databases.
dev.to
October 6, 2026 at 8:05 PM
🔌 dirname: dirname — Strip filename from path

🔗 https://github.com/javimosch/supercli

#dirname #supercli
October 5, 2026 at 6:44 PM
These arguments were used while getting `meta.{dirname,filename}` added. It was difficult to get some to accept these facts. It continues to be so frustrating getting folks to accept Node specific changes I just don't really try.
September 29, 2026 at 10:59 AM
dirname finished its 30 months on February 1, fourteen years after Chrome first shipped it. Verdict: Cleared. Treat the extra field as optional on the server, and delete the guessing code.

cleared.page/2026-02/
August 7, 2026 at 3:53 PM
One seam at the edges: on input types where the spec says dirname does not apply, current runs disagree. Firefox and Safari submit the pair for a month input; Chrome and Edge omit it. Keep dirname on text fields and textareas, where every current run passes.
August 7, 2026 at 3:53 PM
After:

<input type="text" name="comment" dirname="comment.dir">

The browser submits a second field alongside the value: comment.dir=rtl. Store it, and apply it as dir when you display the text again.
August 7, 2026 at 3:53 PM
午前中はバックアップの体勢整えてHDDの再フォーマットしたりスクリプト書き換えてcronに登録しておありー。

ファイル名変えたり結構たいへんだったよ。全部で95ファイル。これ一つ一つファイル名って変えてられないでしょ。コマンドで一発なんですね。知らなかったよー!

find ./ -type f -name "*.tar.gz" ! -name "choco_*" -exec sh -c 'mv "$0" "$(dirname "$0")/choco_$(basename "$0")"' {} \;
January 24, 2025 at 3:16 AM
Add this to your `extra-openai-models.yaml` file. You can find the file location by running `dirname "$(llm logs path)"` in a Bash terminal.
March 25, 2025 at 6:23 PM
My problem: All purchased tracks have "xx - "before the track name. Annoying. This is the bash script to get rid of that.

find . -type f -name "xx - *" | while IFS= read -r f; do
dir=$(dirname "$f")
base=$(basename "$f")
new="${base#xx - }"
mv "$f" "$dir/$new"
done

1/2 -->
April 20, 2026 at 11:14 AM
February 2026 Baseline monthly digest

Baseline Newly available
- CSS shape() function
- Trusted types
- Map getOrInsert() and getOrInsertComputed()
- Zstandard compression

Baseline Widely available
- dirname HTML attribute
February 2026 Baseline monthly digest  |  Blog  |  web.dev
Read about various happenings with Baseline during February 2026.
web.dev
March 30, 2026 at 8:01 AM
February 2026 web platform update

Widely available
- dirname attribute

Newly available
- Map getOrInsert()
- Zstandard compression
Web platform features explorer - February 2026 release notes
web-platform-dx.github.io
March 1, 2026 at 10:40 AM
I personally don’t use engines, it’s been vague over the years what it means, and different package managers disagree too.

Plus it’s hard to get right, and annoying if it warns incorrectly.

Last, I don’t see the use of filename or dirname: paths are annoying across OS, and URLs are great!
June 5, 2025 at 5:31 PM
2025-06-07

Silly looking regex heavy script written
to list packages inside installation script.

#ofsp
January 4, 2026 at 12:27 AM
C++ powering JavaScript from underneath.

Kordex now supports named imports from `kordex:path`.

`join`, `dirname`, `basename`, `extension`, `isAbsolute`, `isRelative` are exposed from the native core and running through `kordex run`.

Built on top of Vix.cpp.

github.com/softadastra/...
June 13, 2026 at 5:09 AM
here's a small cmdstanpy extension that mimics some of the behavior of cmdstanr #rstats #pydata
July 24, 2025 at 1:23 PM
Making a temporary file/dur is very useful for 𝘁𝗲𝘀𝘁𝗶𝗻𝗴.

In the example below, we first use 𝘛𝘦𝘮𝘱𝘰𝘳𝘢𝘳𝘺𝘋𝘪𝘳𝘦𝘤𝘵𝘰𝘳𝘺 to create 5 temp files.

This is a great example of using a 𝗰𝗼𝗻𝘁𝗲𝘅𝘁 𝗺𝗮𝗻𝗮𝗴𝗲𝗿 — a clean way to automatically clean up resources.

pytest makes it even easier using the 𝘵𝘮𝘱_𝘱𝘢𝘵𝘩 fixture:
April 23, 2025 at 9:14 AM
sometimes you need to run this command to prompt you if you want to delete all the target directories from your rust projects

saves a lot of space

find ~/code -type f -name '.rustc_info.json' | xargs -I {} dirname '{}' | xargs -pI {} rm -r '{}'
March 1, 2025 at 3:51 PM
now we're like halfway to really hacky directory tree

x <- fs::dir_ls(.libPaths()) |>
fs::path_filter(regex = "/[A-Z]+$")
p <- split(basename(x), dirname(x))
for (dir_i in seq_along(p)) {
f <- setNames(p[[dir_i]], rep(" ", length(p[[dir_i]])))
cli::cli_inform(c("{names(p)[dir_i]}", f))
}
September 19, 2024 at 8:11 PM