Sponsored Content
Top Forums Shell Programming and Scripting Printing more info than find command gives out Post 302948662 by agent.kgb on Wednesday 1st of July 2015 09:54:52 AM
Old 07-01-2015
or
find path -condition1 -condition2 -ls
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I find out general system info?

How can I find out what type of processor, and speed, along with memory info such as RAM and storage. Also how do I scrollup on the shell? (2 Replies)
Discussion started by: AllyJones
2 Replies

2. Shell Programming and Scripting

[sed/awk] find info and replace

Hi :) I have some problems with "FOR"... I have a text file in this format: name1 www.link1/random_number name2 www.link2/random_number name3 www.link3/random_number ... (Names and info changes) Now, I need: (4 Replies)
Discussion started by: aspire
4 Replies

3. HP-UX

How to find tcsh shell version info in HP-UX?

Hi, I need to find tcsh shell version info on several boxes. I made a script and running on boxes through SSH. This is what i am doing : echo /bin/tcsh -c 'echo $version' | ssh "box name" but i dont see anything. if i run /bin/tcsh -c 'echo $version' on ocal machine i see the... (2 Replies)
Discussion started by: kailash19
2 Replies

4. Red Hat

How to find VMware info from Linux?

Hi, I have two questions about Linux with VMware: (1) How to tell if the system is real or VMware virtual from a Linux platform without root privilege? (root can use 'dmidecode | grep -i vmware). The command 'dmesg | grep -i vmware' run by everyone is not always working for this purpose. (2)... (2 Replies)
Discussion started by: aixlover
2 Replies

5. Solaris

How to find FC info on Sun x86 system?

Hi, we have a Sun x4150 server connecting to Brocade switches. I need to get all WWN on the Sun server. Here is the result: # fcinfo hba-port No Adapters Found. # prtconf -vp | grep -i wwn # luxadm probe ERROR: No Fibre Channel Adapters found. # luxadm -e port ERROR: No Fibre Channel... (2 Replies)
Discussion started by: aixlover
2 Replies

6. Shell Programming and Scripting

How to find DL Owner info using ldapsearch?

Currently i have following syntax: ldapsearch -D "CN=..,OU=..,OU=All Businesses,DC=..,DC=..,DC=.." -w .. -h .. -p .. -b "OU=All Businesses,DC=..,DC=..,DC=.." "managedObjects=$DL_NAME_CN" employeeNumber givenName sn -S employeeNumber -x which gives me following info: "requesting:... (0 Replies)
Discussion started by: arsenghani
0 Replies

7. UNIX for Dummies Questions & Answers

Like to find text info from a list From-To

Wrong form sorry Can be deleted (1 Reply)
Discussion started by: Jotne
1 Replies

8. Shell Programming and Scripting

ksh script find command not printing any results

Hello, Hitting a wall on this one. When at the command prompt it works fine: # find /home/testuser -name 'PAINT*canvasON.txt' /home/testuser/PAINT_canvasON.txt # pwd /home/testuser # ls -l PAINT*canvasON.txt -rw-r--r-- 1 root user 23 Feb 07 02:58 PAINT_canvasON.txt... (2 Replies)
Discussion started by: seekryts15
2 Replies

9. UNIX for Beginners Questions & Answers

Script to find file types and info

I'm looking for a way to inventory files on a webserver into a CSV file, and am particularly interested in certain types of files, like .php, .cgi, .pl, .py, .sh, etc. but also want the ability to find all files, including those with no extension, or specified extensions, as above, including files... (1 Reply)
Discussion started by: spacegoose
1 Replies

10. UNIX for Beginners Questions & Answers

Printing the user and group info

Hi All, i want to collect all the users info whose id greater than 999 and print the groups information which they belong. example : for user in $(cut -d: -f1,3 /etc/passwd | egrep ':{4}$' | cut -d: -f1); do groups $user; done centos : centos adm wheel systemd-journal balu : balu ... (2 Replies)
Discussion started by: balu1234
2 Replies
which(1)						      General Commands Manual							  which(1)

NAME
which - locate a program file including aliases and paths SYNOPSIS
[name...] DESCRIPTION
For each name given, searches for the file that would be executed if name were given as a command, and displays the absolute path of that file. Each argument is expanded if it is aliased, and searched for along the user's path. Both aliases and path are determined by sourc- ing (executing) the user's file. DIAGNOSTICS
A diagnostic is given for names that are aliased to more than a single word, or if an executable file with the argument name was not found in the path. EXAMPLES
The command: specifies where the executable program of the sh(1) command is found. For example, the response might be: if the sh(1) being used is located in WARNINGS
reports aliases even when not invoked from csh. cannot find built-in commands (e.g., jobs). information may be incorrect because it is unaware of any path or alias changes that have occurred in the current shell session. AUTHOR
was developed by the University of California, Berkeley. FILES
source of aliases and path values which(1)
All times are GMT -4. The time now is 04:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy