Friday, 28 May 2010
Removing files with hyphenated filenames in Linux
I was trying to remove a strangely named directory under my WebSphere Application Server Deployment Manager's wstemp directory: -
as follows: -
rm -Rf -6895560/
which resulted in: -
rm: invalid option -- 6
Try `rm --help' for more information.
I'd had the same problem a few days ago - the problem is that the hyphen ( - ) character is seen by the rm command as an option.
The solution ? A quick rummage around Google threw this up: -
Use the "--" option to tell rm that there are no more options coming, hence the command becomes: -
rm -Rf -- -6895560/
Job done :-)
at May 28, 2010
Again with the Python and pip fun, this time on my Mac, where commands such as: pip3 list and: - pip3 install --upgrade pip were failing w...
After an unscheduled reboot of the VMs that host my K8s cluster, I was struggling to work out why the kubelet wasn't starting properly...
I hit a wee snag earlier today, whilst attempting to unpack some IBM software on my NAS. Being a command-line junkie, I'd SSH'd into...
I've just spent ~1 hour trying to get a pair of Powerline adapters to .... pair. This involved pressing a "Pair" button on one...