Skip to main content
0 votes
2 answers
24 views

rm command works in shell but not in Makefile

I have an rm command that does not work in a Makefile but when I copy it to the shell it works: $ make clean rm paper.{abs,blg,pdf,aux,log,bbl,out,xmpdata} rm: cannot remove 'paper.{abs,blg,pdf,aux,...
Gergely's user avatar
  • 7,367
0 votes
1 answer
96 views

unable to dwonload zip file from google drive using gdown method in vs code

manually downloading openpose models %%bash gdown 1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh unzip models.zip mv /content/models/face/pose_iter_116000.caffemodel /content/openpose/models/face/pose_iter_116000....
SAISH's user avatar
  • 1
0 votes
1 answer
9 views

how to prevent exit 1 when blanket rm -R with empty directories

So I am deploying a script to remove several directories of a program we no longer use. It was such a cluster though that not all directories are present on the computers. I am doing a simple rm -R ...
tjernigan's user avatar
-2 votes
2 answers
329 views

Is there any way I can use rm -rf in PowerShell?

I know that I can use rm -r -fo to remove a folder and all its content in PowerShell. But is there any way I can use rm -rf in PowerShell? I tried to add the below scripts into my $Profile, but both ...
Aaron Hao's user avatar
0 votes
1 answer
85 views

nodejs fs.rm(path, { recursive: true, force: true }) throws "ENOTEMPTY: directory not empty"

import { existsSync } from "fs"; import fs from "fs/promises"; export async function makeFolder(path: string) { if (existsSync(path)) { try { await fs.rm(path, { recursive: true, ...
Andrei Ranta's user avatar
0 votes
1 answer
358 views

node js rimraf delete dist folder in any of the subfolders of src

I have many dist folders inside src folder. It can be nested at any depth. src - dist - main - dist - com - dist .... - test - dist -...
theprogrammer's user avatar
0 votes
1 answer
227 views

rm: cannot remove `dir-name': Directory not empty [closed]

ls -al .vscode-server # . .. bin ls -al .vscode-server/bin # . .. I tried to use rm -rf .vscode-server to remove .vscode-server, and got rm: cannot remove 'dir-name': Directory not empty. I tried ...
SeaMount's user avatar
0 votes
0 answers
27 views

Delete multiple shortcuts on macOS

How to run a command which works similar to rm but instead of deleting all files, folders and shortcuts, it only deletes shortcuts?
Timothy Swan's user avatar
0 votes
0 answers
311 views

Deleting folders and files from s3 bucket based on last modified date column and based on name prefix using AWS CLI

I want to delete folders from aws s3 my-bucket which are older than 2023-05-01 and folder names which starts with "000". using AWS CLI I can delete folders and files which starts with "...
Rohini's user avatar
  • 9
0 votes
1 answer
50 views

Shell script - rm does not remove directory from variable set by external parameter

I would like to run a shell script test_shell.sh to delete a directory defined by a parameter set in another file test_config.txt. test_config.txt: var = testdir test_shell.sh: #!/bin/bash vardel=$(...
silence_of_the_lambdas's user avatar
0 votes
1 answer
262 views

Add-AzureRmVhd : Resource group 'ResourceGroupName' could not be found

I'm trying to import VHD via PowerShell in a Virtual Machine but am getting errors. Add-AzureRmVhd : Resource group 'ResourceGroupName' could not be found. At line:1 char:1 + Add-AzureRmVhd -...
Suri Gang's Hallen's user avatar
-1 votes
1 answer
40 views

How to remove special character filename in Linux?

I have a filename with -v. I try to remove it by rm -v or rm "-v" or rm ¥-v But it shows something like rm: missing operand Try 'rm --help' for more information.
Jack jdeoel's user avatar
  • 4,584
1 vote
0 answers
148 views

Rightmove deliveryPointId does not match up with Royal Mail "CSV PAF.CSV" file

I have obtained a particular property's deliveryPointId from one of their pages. I then tried to match it up with its correct address from the PAF file but find that it matches a property in a ...
user740360's user avatar
1 vote
1 answer
50 views

How to rename or remove file name with weird quotes and slashes in linux

When I run git status I get: Untracked files: (use "git add <file>..." to include in what will be committed) "\231" "\231\217\373\275\235Y" So I ...
jlcv's user avatar
  • 1,778
-1 votes
1 answer
26 views

Mac terminal directory issues

I previously had a bootcamp that I input labs in one folder but i made them all directories in my macOs terminal. I can't delete them. I tired to (rm -r) all but when I override them, they were all ...
Maria Marquez's user avatar

15 30 50 per page
1
2 3 4 5
37