Tag Info

New answers tagged

1

Definitely a more verbose option (python) that looks for mimetype(s) using the file command. It is an edited/rewritten version of this one, made fit for your purpose. What it does When files are found it returns a message (in the terminal): checking for filetypes: image, video, audio... 4 media files found. See for details: ...


1

To find files of a certain type, I wouldn't search for the file extension. I'd rather scan files for their MIME type using a combination of find and file. This output can then be greped for the desired mimetypesm e.g. audio/* and video/*. I've created a small script to do so: #!/usr/bin/env bash #Don't know whether you want to do so, but this deletes a ...


0

^W (F6) Search for a string or a regular expression Not in all system work F1 for help page. Try ^G. Not in all system nano has help page Yep, it's just help page below. For those who see this message [ Sorry, support for this function has been disabled ] instead of nano help page ^G (F1) Display this help text ...


1

It's a common problem, you can solve it directly from command line. You can use --devices=skip to ignore the special device files (source of errors and endless loops on many systems). Execute sudo chown -R new_owner_name file_pattern to change the file ownership recursively and avoid the permission errors. If you redirect the error stream with COMMAND 2> ...


2

You are getting these Permission denied errors because there are some python files that your user does not have permission to read, so grep is not working for those files (you can't search them). You want to "get rid of" the Permission denied errors. You can add 2>/dev/null to the end of your command like this: grep -rn --include="*.py" ...


0

As dez93_2000 mentioned, /media path is blacklisted, but you can remove it from /etc/updatedb.conf and set PRUNE_BIND_MOUNTS to "no". If you run updatedb after that you should notice some time will be spent on processing newly found media devices.



Top 50 recent answers are included