LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unmount Command Not Found? (https://www.linuxquestions.org/questions/linux-newbie-8/unmount-command-not-found-4175514738/)

bl0ck 08-13-2014 06:00 PM

Unmount Command Not Found?
 
I have a few RHEL 5.6 hosts and when trying to unount a file system I am receiving the following error:

[root@localhost/]# unmount /db/prd05
-bash: unmount: command not found


I am confused, isn't unmount a standard command?

Also tried to look it up:
[root@localhost /]# man unmount
No manual entry for unmount

syg00 08-13-2014 06:02 PM

umount

bl0ck 08-13-2014 06:04 PM

i feel like an idiot... guess this is why I posted in the newbie section.

syg00 08-13-2014 07:13 PM

Don't worry about it - I'm sure we all still occasionally do that.
I often wondered why, but never bothered to look. Just found this.

John VV 08-13-2014 07:17 PM

i habitually put a "n" in that command

there are MANY that are like that
one i use often is " dstripe" and yes it DE-STRIPS images from spacecraft

bl0ck 08-13-2014 07:30 PM

lol... thanks guys.

davidcbusby 09-02-2019 05:58 AM

Thank you
 
Quote:

Originally Posted by syg00 (Post 5220674)
umount

Thank you. I am a newbie and made this mistake yesterday.

hazel 09-02-2019 06:02 AM

What you could do is put an alias in your .bashrc file (or in .bash_aliases if you've got that)
Code:

alias unmount umount

Firerat 09-02-2019 09:05 AM

Quote:

Originally Posted by hazel (Post 6032277)
What you could do is put an alias in your .bashrc file (or in .bash_aliases if you've got that)
Code:

alias unmount umount

this probably won't work for sudo

alias is great, but sometimes it is a bad idea to use a crutch.

I mostly use alias to set default options
Code:

alias ls="ls --color=always"
alias less="less -r"

ls ~/  | less
ls ~/  | \less
\ls ~/ | less
ls --color=auto | less

adding \ before makes it ignore the alias
or last "one wins"

Firerat 09-02-2019 09:17 AM

another thought, bash completion.

<tab> is the tab ;)

Code:

unm<tab> # I get unmkinitramfs ? thats not unmount?
un<tab>tab> # I get a list of things starting with "un"
## > ahh, is it umount?
um<tab>tab> '# woot
unmo<tab> # completes to mount

Code:

umount --<tab> ## gives us a list of the options for umount ;)
bash_completion can be a little hit and miss, depends on the distro

note, this is a bash feature, other shells ( like ksh zsh ) have similar funtionality ,just a little different.



try
ls /usr/<tab><tab>
you now have a tab habit
and can probably navigate your way though the filesystem on the command line faster than a gui file manager

BW-userx 09-02-2019 09:22 AM

I do the same even for usr sometimes as I am saying it out in my head user local share my fingers get carried away with literals.

Code:

/user/local/share

Firerat 09-02-2019 09:26 AM

I would be spamming tab at L ;)


All times are GMT -5. The time now is 06:10 AM.