Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Frequently used command in UNIX Post 54912 by milhan on Friday 27th of August 2004 01:13:59 PM
Old 08-27-2004
as mentioned, it depends what shell you are using. If it's bash shell you can use the command history which will give you the most recent commands you executed. There will also be a number on the left. if you type ! at the beginning of this number, it will execute that command associated with that number. you can also type r and then the beginning of the most recently executed command, then it'll execute that command. Such as r e will execute echo $0 if it was the most recent command starting with e(this is about bash shell)
on korn shell fc -l and r works similar.
 

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

why i havent been posting so frequently...

to start, i will continue to be an active member of this community and still love computers and unix based operating systems. ive been busy recently with a pretty big project, not involving unix :p one of my other hobbies is automobiles. i have a 1986.5 toyota supra, now if anyone here has... (8 Replies)
Discussion started by: norsk hedensk
8 Replies

2. UNIX for Dummies Questions & Answers

Server rebooting frequently

O/P of the uname -a Server Server 4.0 3.0 3516 Pentium IV(TM)-ISA/PCI Server is getting rebooted frequetly... I don't know what is the problem in server ... Any help why the server is getting rebooted frequetly. Can i check what is the problem like in log files (5 Replies)
Discussion started by: srikanthus2002
5 Replies

3. HP-UX

Server Hanging frequently - urgent help required

hi, I am facing a sever problem in mu HO-UX 11.11.0 Server which is getting hanged for last 3/4 days. Its giveing error insufficient memory. Earlier this problem was not there. We are using oour ERP & informix on the same. There no heavy & sudden increase of data. When I checked the... (3 Replies)
Discussion started by: micku_100
3 Replies

4. Solaris

Server Rebooting frequently

Deall All, I have facing some problem. I have a Sun 4500 Server at the customer place. Now the server is not booting mean's once the server is coming up it is automatically rebooting. As this is the critical server for the customer that is use for production . Can this be solved by... (10 Replies)
Discussion started by: sudhansu
10 Replies

5. Linux

/var getting fill frequently

I have Red hat Linux server. There are 14 NFS shares which are coming from NAS. There are so many messages filling /var/log/messages, which seems like some NFS logging is enables somewhere, but I am not able to figure it out. Every few minutes, it will filll my /var (which is part of root) to 100%... (2 Replies)
Discussion started by: solaris_1977
2 Replies

6. Linux

Running 'sync' command frequently.

I have a Linux server that runs a Java based app that automates file transfers for a large number of users/systems. I'm running into a problem with the scripts for this automation program in that when I have a function in the script generate an output file, and the next line requires that file to... (1 Reply)
Discussion started by: acascianelli
1 Replies

7. Red Hat

Interface card link goes down and recovers frequently

Hi Experts, I have an issue where the interface card went down for like four times in last one week in redhat linux server. Every time it goes down, it comes back. 2014 Oct 21 07:22:14 <hostname> kernel: nx_nic: NIC Link is down 2014 Oct 21 07:22:21 <hostname> kernel: nx_nic: NIC Link is... (3 Replies)
Discussion started by: dhanu1985
3 Replies
RBASH(1)						      General Commands Manual							  RBASH(1)

NAME
rbash - restricted bash, see bash(1) RESTRICTED SHELL
If bash is started with the name rbash, or the -r option is supplied at invocation, the shell becomes restricted. A restricted shell is used to set up an environment more controlled than the standard shell. It behaves identically to bash with the exception that the follow- ing are disallowed or not performed: o changing directories with cd o setting or unsetting the values of SHELL, PATH, ENV, or BASH_ENV o specifying command names containing / o specifying a file name containing a / as an argument to the . builtin command o specifying a filename containing a slash as an argument to the -p option to the hash builtin command o importing function definitions from the shell environment at startup o parsing the value of SHELLOPTS from the shell environment at startup o redirecting output using the >, >|, <>, >&, &>, and >> redirection operators o using the exec builtin command to replace the shell with another command o adding or deleting builtin commands with the -f and -d options to the enable builtin command o using the enable builtin command to enable disabled shell builtins o specifying the -p option to the command builtin command o turning off restricted mode with set +r or set +o restricted. These restrictions are enforced after any startup files are read. When a command that is found to be a shell script is executed, rbash turns off any restrictions in the shell spawned to execute the script. SEE ALSO
bash(1) GNU Bash-4.0 2004 Apr 20 RBASH(1)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy