Sponsored Content
Top Forums Shell Programming and Scripting Finding 'ls' to bypass system alias Post 302942325 by Corona688 on Monday 27th of April 2015 05:02:24 PM
Old 04-27-2015
'locate' is not a good idea. It's not installed on many systems, and may be unused on some where it is.

Insisting on /bin/ls is not a good idea. Some distributions might insist on putting them somewhere else.

Aliases are an interactive session thing -- they're not generally enabled in scripts at all. You have to go to special effort to make them happen. So this is probably unnecessary.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Finding out available C++ compilers on my system

How can I find out what C++ compilers are available on my system? Thanks in advance (7 Replies)
Discussion started by: HelpMeIAmLost
7 Replies

2. UNIX for Dummies Questions & Answers

Finding system info

Can someone tell me the command to display the info about the CPU? I need the CPI id.. of my SUN box. Solaris 8. It's some totally un-intuitive command, and i can't recall it. tnx. (3 Replies)
Discussion started by: ireeneek
3 Replies

3. UNIX for Dummies Questions & Answers

Finding unix file system

Hi, I have here a hard drive from a computer that was damaged, and now the costumer needs the data on the hard drive, but doesn't have any other computer to read data. I don't really know what file system is on the disk. How can I find out what file system is on the disk so I can read the... (4 Replies)
Discussion started by: dmarques
4 Replies

4. UNIX for Dummies Questions & Answers

Finding out which file system a machine has

Hi, when I run sfdisk -l get: Disk /dev/sda: 19452 cylinders, 255 heads, 63 sectors/track Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/sda1 * 0+ 12 13- 104391 83 Linux... (1 Reply)
Discussion started by: mojoman
1 Replies

5. Solaris

Finding most busy file system

Hi Experts, I was asked to find most busy file system on one of the server. It is Sun 10. Any idea to get this? Thanks, Deepak (5 Replies)
Discussion started by: naw_deepak
5 Replies

6. Shell Programming and Scripting

Kornshell finding operating system

This should be really simple but I can't figure it out. :wall: Whats the command to find the operating system version thats running. I need to know if the node my script gets run on is HP-UX or linux or AIX or Oracle (6 Replies)
Discussion started by: Blogger11
6 Replies

7. Solaris

root password for system maintenance (control-d to bypass)

I have message "root password for system maintenance (control-d to bypass)" after Solaris 10 boots up. Why it appears ? thx for help. (3 Replies)
Discussion started by: presul
3 Replies

8. Shell Programming and Scripting

finding the hostname of a remote system

I know the ipaddress of a remote machine and would like to know its hostname I used the nslookup command but... is there an easier way of doing it... just like hostname command. When i give this command i get the following nslookup 10.2.47.36 Server: 10.233.04.31 Address: ... (2 Replies)
Discussion started by: ramky79
2 Replies

9. Solaris

Finding system uptime without login

Hi, Am writing a script where I want to find uptime of certain servers. Is there any command where we can find uptime without login to the server, since the server list is big logging to the server will time consuming. Thanks in advance (7 Replies)
Discussion started by: rogerben
7 Replies

10. Shell Programming and Scripting

Finding all files w/ suffix on the system

I am trying to build a list of all files ending in *.cbl in the system, but when I try find / -name *.cbl, I only find one specific file name that is alphabetically first. Is there something I'm missing? TIA ---------- Post updated at 11:20 AM ---------- Previous update was at 11:15 AM... (1 Reply)
Discussion started by: wbport
1 Replies
xdm.options(5)							File Formats Manual						    xdm.options(5)

NAME
xdm.options - configuration options for the X display manager DESCRIPTION
/etc/X11/xdm/xdm.options contains a set of flags that determine some of the behavior of the X display manager xdm(1x). Most of xdm's behavior is customized through other files; consult the xdm manual page if this manual page does not describe the behavior you want to alter. /etc/X11/xdm/xdm.options may contain comments, which begin with a hash mark ('#') and end at the next newline, just like comments in shell scripts. The rest of the file consists of options which are expressed as words separated by hyphens, with only one option per line. Options are enabled by simply placing them in the file; they are disabled by prefixing the option name with 'no-'. Available options are: ignore-nologin Normally, if the nologin(5) file exists, its contents will be displayed using xmessage(1x) (if xmessage is available), and the user will be returned to the xdm login screen after xmessage is dismissed instead of starting the X session. If this option is enabled, xdm starts a session as usual (after xmessage is dismissed, if xmessage is available and the nologin file exists). This behavior is disabled by default: nologin is heeded, not ignored. restart-on-upgrade Enable this option with caution on 'production' machines; it causes the daemon to be stopped and restarted on upgrade, even if the process has children (which means it is managing X sessions). Typically when a package that contains a daemon is being installed or upgraded, its maintainer scripts stop a running daemon process before installing the new binary, and restart it after the new binary is installed. Stopping xdm causes immediate termination of any sessions it manages; in some situations this could be an unwelcome surprise (for instance, for remote xdm users who had no idea the administrator was performing system maintenance). On the other hand, for machines that stay up for long periods of time, leaving the old daemon running can be a bad idea if the new version has, for instance, a fix for a security vulnerability (overwriting xdm's executable on the file system has no effect on the copy of xdm in memory). The xdm package's pre-removal script checks to see if the xdm process has any children; if it does, it is possible that someone's session would be killed by stopping xdm, so a warning is issued and an opportunity to abort the upgrade of xdm is pro- vided. Furthermore, restarting xdm on upgrade can be surprising, because a locally-managed X server can change the active VT even while other packages are continuing to upgrade. If, by intent or accident, the X server does not honor the key sequence to switch VTs back to a virtual console, this can be undesirable. This behavior is disabled by default: xdm will be not be stopped or started during an upgrade of its package; the administrator will have to do so by hand (with invoke-rc.d xdm restart or by rebooting the system) before the newly installed xdm binary is used. start-on-install Enable this option with caution; it causes the xdm daemon to be started immediately after the package is installed. See the above entry regarding restart-on-upgrade for other caveats regarding the consequences of starting the xdm daemon during package manage- ment. This behavior is disabled by default: xdm will not be started when it is installed. Changing this setting can affect future installs if the package is removed, but not purged (which removes 'conffiles', including xdm.options). use-sessreg This option causes the /etc/X11/xdm/Xreset script to call the sessreg(1x) program to register X sessions managed by xdm in the utmp(5) and wtmp(5) files. If it is disabled, the utmp and wtmp files will have no record of xdm sessions. This behavior is enabled by default; sessreg will be used. Users of older versions of the Debian system should note that the 'run-xconsole' option has been removed. The shell script named /etc/X11/xdm/Xreset can be edited to disable or modify the running of xconsole on the xdm greeter screen; see xdm(1x) for more information. AUTHORS
Stephen Early, Mark Eichin, and Branden Robinson customized xdm's startup and reset scripts and package maintainer scripts to implement the functionality described above. This manual page was written by Branden Robinson. SEE ALSO
sessreg(1x), xmessage(1x), xdm(1x), nologin(5), utmp(5), wtmp(5) Debian Project 2004-10-31 xdm.options(5)
All times are GMT -4. The time now is 01:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy