Generated script
Nothing here yet. Double-click a folder, or right-click an item.
A simulated file explorer that, instead of moving files, shows you the command that would do it. Double-click a folder and cd appears; right-click and pick what you want, and the command is written down in the script. Nothing is executed and your disk is never touched: it all happens in a make-believe file system that lives in this tab.
1. Pick the system at the top: Linux, macOS, PowerShell or CMD. The same gesture produces each one's command.
2. Navigate by double-clicking, or through the tree on the left.
3. Right-click a folder or a file to copy, paste, rename, delete or show its size.
4. The script builds up below. Copy it or download it when you are done, and paste it into your real terminal.
A name with spaces breaks a command: rm -rf /home/me/My Documents does not delete that folder, it deletes /home/me/My. That is why the tool quotes on its own whatever needs it, and guards files whose name starts with a dash with ./, since they would otherwise be read as options. When a system cannot represent a name — CMD and double quotes, for instance — it says so instead of handing you a command that would do something else.
If the command would fail on your machine, it fails here too, for the same reason. Two that trip everybody up:
• cp file folder with the folder already there copies inside it, it does not rename.
• rm folder without -r says «is a directory» even when it is empty; the one that tells a non-empty directory apart is rmdir.
The size you see is the sum of the contents. The real du measures disk blocks, so for small files it shows more (a 1 KB file takes up a 4 KB block). It is not a bug in the tool: it is what du does, and it is worth knowing before comparing figures.
The right-click menu links to the Linux: permissions and users tool, which already works out chmod with its checkbox table, the symbolic form and the special bits. It links instead of repeating it so that there is only one place where it is right.
Nothing here yet. Double-click a folder, or right-click an item.