Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4060

Raspberry Pi OS • Re: How to rename root partition on Rpi5

$
0
0

Well, "my" CentOS does not like any kind of aliases ( "/" make it angry)

Code:

somprompt$ alias ~/bin/DF="/bin/df | sed -e 's:/dev/mmcblk0p2:/dev/root:'"-bash: alias: `maison/bin/DF': invalid alias name
and, in a function, I give the full path of any executable - the way it was checked- (Idea came from makefiles examples where LS, CC, FORTRAN are local names (and CC is not rm -rvf ./* though it would make compile times way shorter)
Unsurprisingly, it doesn't work on my system either. Try this:

Code:

alias df="/bin/df | sed -e 's:/dev/mmcblk0p2:/dev/root:'"

Statistics: Posted by bls — Wed Jan 17, 2024 6:42 pm



Viewing all articles
Browse latest Browse all 4060

Trending Articles