Unable to remove -rf folder

So I recently discovered a folder named -rf in my folder directory, and I am unable to remove it from my device, after several failed attempts, I am worried if this is any malware? its persistence is very aggressive.

enter image description here

can u please help me with this lab test ( Create a folder named FinalTest under the root of the Linux file system:)

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

mac – “Other” folder is too big

My “Other” folder in my mac taking every free mb it has. Note that I tried to find where it coming from but I just can’t figure it out. It’s 418GB big and I have nothing on my machine that is so big.

macOS Catalina v10.15.4

Filesystem      Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1s5   466Gi   10Gi  8.3Mi   100%  487565 4881965315    0%   /
devfs          334Ki  334Ki    0Bi   100%    1156          0  100%   /dev
/dev/disk1s1   466Gi  452Gi  8.3Mi   100% 2187628 4880265252    0%   /System/Volumes/Data
/dev/disk1s4   466Gi  3.0Gi  8.3Mi   100%       3 4882452877    0%   /private/var/vm
map auto_home    0Bi    0Bi    0Bi   100%       0          0  100%   /System/Volumes/Data/home
/dev/disk1s3   466Gi  504Mi  8.3Mi    99%      40 4882452840    0%   /Volumes/Recovery

after running: sudo du -hxd1 /System/Volumes/Data

 45G    /System/Volumes/Data/Users
 28G    /System/Volumes/Data/Applications
873M    /System/Volumes/Data/opt
  0B    /System/Volumes/Data/Volumes
  0B    /System/Volumes/Data/.TemporaryItems
  0B    /System/Volumes/Data/cores
449G    /System/Volumes/Data

running sudo du -hxd1 /System/Volumes/Data :

total 2
drwxrwxr-x+ 56 root  admin  1792 Apr 20 15:52 Applications
drwxr-xr-x  70 root  wheel  2240 Dec 16 09:07 Library
drwxr-xr-x@  3 root  wheel    96 Aug 25  2019 System
drwxr-xr-x   7 root  admin   224 Sep 29  2019 Users
drwxr-xr-x   3 root  wheel    96 Apr 20 23:08 Volumes
lrwxr-xr-x   1 root  wheel   103 Apr 18  2018 com.oracle.java.Helper-Tool.plist -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Helper-Tool.plist
lrwxr-xr-x   1 root  wheel   104 Apr 18  2018 com.oracle.java.Java-Updater.plist -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Java-Updater.plist
drwxr-xr-x   2 root  wheel    64 Aug 25  2019 cores
dr-xr-xr-x   2 root  wheel     1 Apr 20 23:13 home
drwxr-xr-x   2 root  wheel    64 Aug 25  2019 mnt
drwxr-xr-x   6 root  wheel   192 Oct 11  2019 opt
drwxr-xr-x   6 root  wheel   192 Jun 30  2020 private
drwxr-xr-x   2 root  wheel    64 Aug 25  2019 sw
drwxr-xr-x   5 root  wheel   160 Sep 29  2019 usr

enter image description here

plugins – How can we get this dynamically as this folder may not be by the same name always → wp-admin


The above is a part of the code in WordPress, but I have read somewhere in the past that these folders can be changed.

How can we dynamically get this part through some PHP function or code?

macos – What is movement key on all folder viewed screen mode on Mac?

macos – What is movement key on all folder viewed screen mode on Mac? – Ask Different

I have a folder of thousands of images. I want to filter it so that it only displays all the images where the width>height

In file explorer I can specify the exact width and the height in the search bar but all the images have vastly different dimensions.

finder – Automatically Delete Files From Downloads Folder Daily Unless Tagged With “Keep”?

Automatically Delete Files From Downloads Folder Daily Unless Tagged With “Keep”?

The following example AppleScript code can be used in a shell script with an /usr/bin/osascript shebang, or an AppleScript script/application, or a Run AppleScript action in an Automator workflow to delete any file in the targetFolder that does not have a custom “Keep” Tag set in Finder:

-- # targetFolder can be either an HFS path or a POSIX path,
-- # "path:to:target:folder:" or "/path/to/target/folder"
-- # 
-- # Change the value of targetFolder from "/path/to/target/folder"
-- # to the appropriate fully qualified pathname in either form.

set targetFolder to "/path/to/target/folder"

-- # The remaining code should not need to be modified, 
-- # unless the mdfind query needs to be changed.

set targetFolderPOSIXpath to ¬
    the quoted form of ¬
        the POSIX path of targetFolder

set shellCMD to {¬
    "mdfind -onlyin", space, targetFolderPOSIXpath, space, ¬
    "'! kMDItemKind == Folder && ! kMDItemUserTags == Keep'"} ¬
    as string

set posixFilesToDelete to ¬
    paragraphs of ¬
    (do shell script shellCMD)

set filesToDelete to {}
repeat with thisFile in posixFilesToDelete
    set thisFile to POSIX file thisFile as alias
    set the end of filesToDelete to thisFile
end repeat

if filesToDelete is not {} then ¬
    tell application "Finder" to ¬
        delete filesToDelete 

Note: Scroll to see remaining code.


  • As I do not have the target folder mentioned in the OP, I could not test for any permissions issues that may need addressing in: System Preferences > Security & Privacy > Privacy
  • The example AppleScript code was tested and work for me without issue in macOS Catalina using a temporary folder created within my Home folder while adding files and folders to it and tagging only some files with a custom “Keep” Tag in Finder.
  • As to “Automatically Delete Files” there are a number of different ways to accomplish this depending on how the example AppleScript code is used. If used as an Automator workflow created as a Folder Action using a Run AppleScript action the code can be used as is, replacing the default default code once the targetFolder variable is set.
  • Used as an AppleScript shell script or application it can be scheduled to run at whatever time you’d like, using any of several different methods.

Note: The example AppleScript code is just that and sans any included error handling does not contain any additional error handling as may be appropriate. The onus is upon the user to add any error handling as may be appropriate, needed or wanted. Have a look at the try statement and error statement in the AppleScript Language Guide. See also, Working with Errors. Additionally, the use of the delay command may be necessary between events where appropriate, e.g. delay 0.5, with the value of the delay set appropriately.

macos – Weird folder setup in Big Sur compared to Mojave. Lots of questions

macos – Weird folder setup in Big Sur compared to Mojave. Lots of questions – Ask Different

terminal – How can I export a list of files within a volume or folder?

I would like to export a list of files contained in a Volume into legible text, or a spreadsheet document that I can easily share.

Things I have tried so far that didn’t work:

TextEdit: If I select all the folders on the volume, for example when the Finder window is presenting them in a column, then Copy then Paste into a Plain Text document, only the names of the folders will be copied, not the contents.
I could present the folder in List format in the Finder window, but then I would have to manually open all the folders one by one before copying/pasting. Too time consuming.

TextWrangler: The output is ok, but I feel like I would like to have more options regarding how many levels deep the exported file list is, otherwise I end up with 33k lines of text. Good but not customizable.

Terminal: Some courageous experts have shared how to do it with Terminal, but I’m not super comfortable with it, and most importantly, the Volume I tried to execute the command on didn’t load (“No such file or directory”) – maybe because there are spaces in my Volume names? (this tip did not work when trying to add a Volume name with spaces in a Terminal prompt to output file names…). Did not work.

At the end of the day I ended up purchasing a paid app, but since I use several different user accounts across several machines, I would love to know if there is an easier and free way that I can use in the future.

Machine: iMac Mid-2011 with High Sierra.

macos – New dropbox installation smartsync made every folder online-only

I have multiple computers (Unix and Mac) that are connected to the same Dropbox account and I have smartsync enabled such that the largest folders are online-only.

I recently installed Dropbox on an M1 MacBook Pro with Big Sur for the first time, and the installation made every single folder online-only. I want the same setting that all of my other computers have where only the specific folders I designated are online only.

Is there anything I can do about this?

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123