LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06: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, 06:02 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
umount
 
2 members found this post helpful.
Old 08-13-2014, 06: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, 07:13 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
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, 07:17 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

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

Original Poster
Rep: Reputation: Disabled
lol... thanks guys.
 
Old 09-02-2019, 05: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, 06:02 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
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, 09: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, 09: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 09:23 AM.
 
Old 09-02-2019, 09:22 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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, 09: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



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 07:01 AM
setup command not found in Ubuntu 10.04 Command Prompt vinaytp Ubuntu 2 05-06-2010 01:10 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
unmount error!!! "command not found" yorgmeister Fedora 1 12-21-2005 11:39 AM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM

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

All times are GMT -5. The time now is 03:42 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
Open Source Consulting | Domain Registration