Tag Info

Hot answers tagged

6

You can use the shell's ${var%ext} parameter substitution features to remove the original extension on a per-file basis: to illustrate touch file{1..6}.NEF file{1,2,4,6}.JPG Then for nef in *.NEF; do [[ -f "${nef%.NEF}.JPG" ]] || echo rm -- "$nef"; done results in rm -- file3.NEF rm -- file5.NEF


3

Strictly, the directory: / is the "root" directory of all directories. That includes all sub- directories, so includes your home directory as well. You need additional privileges for all directories outside ~ (your homedirectory), so either you need to: be member of a specific group (e.g. to share files or directories), or, more drastically, you need sudo ...


3

300MB of zero size files is few millions files in a single directory, it is gonna take time to remove Since disc seems ok and nothing is blocking files try using mc (Midnight Commander)to delete KAzdyLisjm and skip directory scanning this way You will at least see progress if any


2

Using find + xargs + mv: find . -type f -print0 | xargs -0 -I file mv --backup=numbered file . This will move all the files in the current working directory and its subdirectories (recursively) into the current working directory, numbering files with the same filename numerically in order to avoid overwrites of files with the same filename. Sample ...


2

Folder Color works in most distros: Ubuntu, Debian, Mint, openSUSE, Arch Linux, or pretty much anything that has Nautilus, Nemo or the Caja File Browser.I'm not sure it will work with all the themes you've installed but it will with basic ones. sudo add-apt-repository ppa:costales/folder-color sudo apt-get update sudo apt-get install folder-color nautilus ...


2

You could assign a group ownership to a parent folder and then make inside files inherit properties. Assigning group ownership could be set by sudo chmod -R 660 myself:somegroup /path/to/parent The group ownership can be inherited by new files and folders created in your folder /path/to/parent by setting the setgid bit using chmod g+s like this: chmod ...


2

Many softwares work on the assumptions, not in fact guaranteed to them by POSIX.1 but traditionally the case on UNIX systems and enshrined in much UNIX literature, that (to quote one such piece of UNIX literature): Every directory contains the file names dot and dot-dot (. and ..) whose inode numbers are those of the directory and its parent directory, ...


1

I'd suggest splitting the files into separate subfolders using the command line before proceeding to view your files. Its unlikely that you will be able to productively view and browse the images until you reduce the file count per folder. For example you can split the files by date. If there is a date stamp in the file, you can use a command like cd ...


1

DO NOT EVER DO THIS, but if you did sudo rm -rf / the rm command, running as root, would happily start deleting. If it found a file, it would delete it,. If rm found a directory, it would enter the directory, delete all the files, then delete the directory. Eventually, rm will run out of files to delete, or will delete a file rm needs (like a dynamic ...


1

In linux there is also Tab complete. It does not cycle through the files tho. if you press tab twice, it will give you a list that matches what you have typed so far. ie. $:/etc$ ls o *tab * tab* odbc.ini odbcinst.ini opt/ os-release $:/etc$ ls o



Only top voted, non community-wiki answers of a minimum length are eligible