4 ms·
Just put it in a script. #!/bin/sh # call this file 'smv' or whatever exec mv --no-clobber "$@" You only have to pay the 'annoying' cost once to a
by pdkl95 6y ago
Just put it in a script.
#!/bin/sh
# call this file 'smv' or whatever
exec mv --no-clobber "$@"
You only have to pay the 'annoying' cost once to add /some/util/script/dir/ to both the user's and root's $PATH.
- __henil 6y agoThis works too but I personally prefer etcet's way as it don't require to change anything in root user.
- hk__2 6y ago> You only have to pay the 'annoying' cost once to add /some/util/script/dir/ to both the user's and root's $PATH Put it in /.../sbin. It’ll be accessible to both root and non-root users.