- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Interactive rm
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 01:56 AM
04-23-2003 01:56 AM
I want to make the rm command to run in the interactive mode by default. What needs to be done?
# rm (filename)
should work like
# rm -i (filename) but I need to type only
# rm (filename)
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 02:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 02:06 AM
04-23-2003 02:06 AM
Re: Interactive rm
alias rm="rm -i"
Add the above to your ~/.login or ~/.profile file.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 02:08 AM
04-23-2003 02:08 AM
Re: Interactive rm
Simply create an alias in your $HOME/.profile:
# alias rm='rm -i'
# alias rmdir='rmdir -i'
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 02:59 AM
04-23-2003 02:59 AM
Re: Interactive rm
alias rm='rm -i'
csh
alias rm rm -i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 03:03 AM
04-23-2003 03:03 AM
Re: Interactive rm
alias rm="rm -i"
alias rmdir="rmdir -i"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 03:10 AM
04-23-2003 03:10 AM
Re: Interactive rm
u can use alias which is the inbuilt shell command. place it in any in your .profile or in /etc/profile.
alias rm="rm -i"
alias name can be anything . so be careful in doing it.
radhakrishnan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 04:46 AM
04-23-2003 04:46 AM
Re: Interactive rm
alias rm='rm -i'
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 05:28 AM
04-23-2003 05:28 AM
Re: Interactive rm
create a file called -i in the directory you wish to have .In shell "-" has precedence over letters and hence rm * command will be interpreted as rm -i * .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 06:09 AM
04-23-2003 06:09 AM
Re: Interactive rm
That quite interseting ... I never thought about that. This is a clever way to pass the -i option to anyone on the system regardless of alias's. especially if you want to protect a specific directory.
Clever
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 07:32 AM
04-23-2003 07:32 AM
Re: Interactive rm
Very cleaver, just what I was looking for