LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2014, 07:00 PM   #1
bl0ck
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
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
 
Old 08-13-2014, 07:02 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,396

Rep: Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048
umount
 
2 members found this post helpful.
Old 08-13-2014, 07:04 PM   #3
bl0ck
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
i feel like an idiot... guess this is why I posted in the newbie section.
 
Old 08-13-2014, 08:13 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,396

Rep: Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048Reputation: 3048
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.
 
Old 08-13-2014, 08:17 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,460

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
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
 
Old 08-13-2014, 08:30 PM   #6
bl0ck
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
lol... thanks guys.
 
Old 09-02-2019, 06:58 AM   #7
davidcbusby
LQ Newbie
 
Registered: Sep 2019
Posts: 2

Rep: Reputation: Disabled
Thank you

Quote:
Originally Posted by syg00 View Post
umount
Thank you. I am a newbie and made this mistake yesterday.
 
Old 09-02-2019, 07:02 AM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,945
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
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
 
Old 09-02-2019, 10:05 AM   #9
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by hazel View Post
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"
 
Old 09-02-2019, 10:17 AM   #10
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
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

Last edited by Firerat; 09-02-2019 at 10:23 AM.
 
Old 09-02-2019, 10:22 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ Win10
Posts: 9,510

Rep: Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036Reputation: 2036
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
 
Old 09-02-2019, 10:26 AM   #12
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I would be spamming tab at L
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing unmount and unmount.cifs johnmccarthy Linux - Newbie 3 11-19-2011 08:01 AM
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 02:10 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
unmount error!!! "command not found" yorgmeister Fedora 1 12-21-2005 12:39 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration