By default, webminal don't set "rm -i" as an alias to "rm" . You can verify this command
Above command won't give any alias. As other members mentioned, to set alias do:
Then verify the alias:
Now create and delete a file:
This will be interactive delete.
If you want to add this alias to your session. Then edit your ".bash_profile" with above alias.
PS: I'm part of Webminal team, logged in to answer this question
I dont see this resolved as rm -if prefers -i over -f and asks for user confirmation while when i try to do the same thing by setting alias rm='rm -i' and then rm -f then it does not prefer -i over -f and does not ask for user confirmation which is strange / unexplained.
I take your word that -i and -f should not be used together but if used together why would the behaviour of what is being prefered change when using and not using aliases ?
Note: i m using single qoutes for setting alias and not double quotes. Could that be a problem ?
I will need another 8 hrs before i can paste the output from the terminal. But like i said you can test this issue yrself by registering and loggin to the online terminal -> Join
I dont see this resolved as rm -if prefers -i over -f .
.
.
I can't confirm this claim; tested on Linux and FreeBSD - no confirmation if -f is present, neither when using the alias nor stating the -i explicitly.
---------- Post updated at 14:52 ---------- Previous update was at 14:50 ----------
According to the standards, if rm is invoked with both -i and -f, the last one of those two options specified takes effect and the other option will be ignored. So:
should be treated exactly the same as:
and:
and:
should be treated exactly the same as:
One of the reasons the standards require this is to allow a user to override one of these options set by an alias by just adding the desired option as an option when the alias is invoked.
I make no claims as to whether or not the version of rm you are using conforms to the standards.
Hello,
I am having issues setting the "read-only" flag via Windows Explorer on my AIX Samba share...
I have on my AIX 7.1 system installed Samba 3.6.24 and configured, joined to our Windows domain successfully.
The samba binaries I got from perzl.org/aix
In my smb.conf I have...
... (1 Reply)
Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users.
In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Hello,
I am using Ubuntu Linux and having problems in setting up remote syslogging. Appreciate your help on this.
On the server unix host, I have made following changes.
uncommented following lines in /etc/rsyslog.conf
$ModLoad imudp
$UDPServerRun 514
Now i am trying to run rsyslog in... (0 Replies)
Hi, I'm new to Solaris 11. The goal is to set up a ZFS raid-Z2 NAS.
These are the instructions I've been trying to follow, with no luck:
"Setting Up an OpenSolaris NAS Box: Father-Son Bonding"
(not allowed to post URL)
Issues:
1) Root access is evidently required but I don't... (8 Replies)
How come if I set an alias as such:
alias dt 'date "+%Y-%m-%d %H:%M:%S"'
it will work as intended, ie the command 'dt' does prompt the date and time, but not when invoked through a script as such:
#!/bin/sh
alias dt 'date "+%Y-%m-%d %H:%M:%S"'
The OS is FreeBSD 7.1.
Thanks in advance (4 Replies)
Hello:
i have several server with own etc aliases. right now i want to combine it all into a general etc aliases in a new freebsd server. cause it consist hundred thousand of record user inside how to make a shell script to combine it or configure it.
all etc aliases record example: ... (0 Replies)
Hi.
I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)