- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- my .cshrc file contents, I don't know the meaning.
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-10-2002 06:49 PM
тАО10-10-2002 06:49 PM
my .cshrc file contents, I don't know the meaning.
Is it a csh command? I know little about the csh.What's the meaning of 'history' and 'filec' command?
************
if (-f /opt/tmos/etc/setup/sys_adm.cshrc) then
source /opt/tmos/etc/setup/sys_adm.cshrc
endif
set history=140
set filec
**************
in the /opt/tmos/etc/setup/sys_adm.cshrc
there are following lines.
what's the meaning of 'if ( -r \!:1 ) source \!:1 '
#!/bin/csh -f
#
alias do_source 'if ( -r \!:1 ) source \!:1 '
do_source /opt/tmos/etc/setup/tmos.cshrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 07:51 PM
тАО10-10-2002 07:51 PM
Re: my .cshrc file contents, I don't know the meaning.
alias do_source 'if ( -r \!:1 ) source \!:1 ' creates an alias called do_source which takes an parameter. This gets used in the do_source line underneath it. See explanation above.
-ETL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 07:59 PM
тАО10-10-2002 07:59 PM
Re: my .cshrc file contents, I don't know the meaning.
2.what's the meaning of 'if ( -r \!:1 ) source \!:1 '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 08:00 PM
тАО10-10-2002 08:00 PM
Re: my .cshrc file contents, I don't know the meaning.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 08:11 PM
тАО10-10-2002 08:11 PM
Re: my .cshrc file contents, I don't know the meaning.
Have a look at the 'csh' man page, particularly the areas on 'set'
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 08:23 PM
тАО10-10-2002 08:23 PM
Re: my .cshrc file contents, I don't know the meaning.
This allows the escape key to be used for filename completion in a csh line command.
history
This is to have the history of commands that were used by the user.
source
is used to read a file and execute the commands inside them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2002 11:04 PM
тАО10-10-2002 11:04 PM