07-07-2003
Disable the `rm -f ` command
I wish to learn how to use the alias command in .cshrc
I need to change some Unix commands, like :
change "rm -f " into "rm -i "
or to write small scripts using alias.
10 More Discussions You Might Find Interesting
1. Solaris
Hello experts..
How can i enable or disable a processor from OBP(OK prompt)?
Thanks in advance... (8 Replies)
Discussion started by: younus_syed
8 Replies
2. Shell Programming and Scripting
Hi All,
I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:(
Thanks,
Rico (1 Reply)
Discussion started by: carnegiex
1 Replies
3. UNIX for Dummies Questions & Answers
hello all
i need to disable the su without "-"
with another meaning i need to force executing of the .profile when using su command
any ideas ??? (4 Replies)
Discussion started by: islam.said
4 Replies
4. Shell Programming and Scripting
Dear
I have one problem in SCO Unix command line.
I want to disable execution of commands with backslash.
For example - if the user executes the following command
\exec_script
Here - i want the system should NOT execute this command.
Can any one give me a suitable... (8 Replies)
Discussion started by: subbu62
8 Replies
5. Shell Programming and Scripting
Hi,
I am working on a Linux machine.
I need to disable 2 options from the available 6 options of a command.
For eg. in the "ls" command we have various options like "l ,r, t, a, .... "
From this, I need to disable option "a"
So when the users type in "ls -a", they should get an error or... (4 Replies)
Discussion started by: aster007
4 Replies
6. Red Hat
Hi,
I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies
7. Red Hat
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
8. OS X (Apple)
Googling suggested "osascript -e 'set volume 0' " but that doesn't work.
I know I'd found this before... some command-line utility that had something to do with audio, mixers, whatever, but I forgot to keep it somewhere I could find it. I did find references to writing an AppleScript app, but... (3 Replies)
Discussion started by: jnojr
3 Replies
9. AIX
I need to disable a command. For example - disabling "ls" means that when someone type "ls" - nothing happens .
Somebody help ???? :confused::confused::confused: (8 Replies)
Discussion started by: bobochacha29
8 Replies
10. Solaris
Hi
I need to disable finger & telnet command in solaris 8
I have put the # infront of finger and telnet line in /etc/inetd.conf file. Further I have run the below command
kill -1 <process id of inetd >
But when I am running finger command it is till giving information for remote machine... (8 Replies)
Discussion started by: amity
8 Replies
LEARN ABOUT XFREE86
resize
RESIZE(1) General Commands Manual RESIZE(1)
NAME
resize - set TERMCAP and terminal settings to current xterm window size
SYNOPSIS
resize [ -u | -c ] [ -s [ row col ] ]
DESCRIPTION
Resize prints a shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm window from
which the command is run. For this output to take effect, resize must either be evaluated as part of the command line (usually done with a
shell alias or function) or else redirected to a file which can then be read in. From the C shell (usually known as /bin/csh), the follow-
ing alias could be defined in the user's .cshrc:
% alias rs 'set noglob; eval `resize`'
After resizing the window, the user would type:
% rs
Users of versions of the Bourne shell (usually known as /bin/sh) that don't have command functions will need to send the output to a tempo-
rary file and the read it back in with the ``.'' command:
$ resize > /tmp/out
$ . /tmp/out
OPTIONS
The following options may be used with resize:
-u This option indicates that Bourne shell commands should be generated even if the user's current shell isn't /bin/sh.
-c This option indicates that C shell commands should be generated even if the user's current shell isn't /bin/csh.
-s [rows columns]
This option indicates that Sun console escape sequences will be used instead of the VT100-style xterm escape codes. If rows and
columns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change.
Note that the Sun console escape sequences are recognized by XFree86 xterm and by dtterm. The resize program may be installed as
sunsize, which causes makes it assume the -s option.
The rows and columns arguments must appear last; though they are normally associated with the -s option, they are parsed sepa-
rately.
FILES
/etc/termcap for the base termcap entry to modify.
~/.cshrc user's alias for the command.
SEE ALSO
csh(1), tset(1), xterm(1)
AUTHORS
Mark Vandevoorde (MIT-Athena), Edward Moy (Berkeley)
Copyright (c) 1984, 1985 by X Consortium
See X(7) for a complete copyright notice.
XFree86 Version 4.7.0 RESIZE(1)