Sponsored Content
Operating Systems Linux Red Hat How to find the path of a command? Post 302907954 by vamshigvk475 on Wednesday 2nd of July 2014 03:50:44 PM
Old 07-02-2014
RedHat How to find the path of a command?

Hi guys. I want to know the path of a command. I tried "which" command also . But no luck.

Please tell me how to find and update the correct path of the command.

Here I'm unable to find the path of ext2online command
Code:
# resize2fs /dev/vg01/lvora_backup
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/vg01/lvora_backup is mounted on /ora_backup; on-line resizing required
ext2online # ext2online /dev/vg01/lvora_backup
-ksh: ext2online: not found [No such file or directory]


Last edited by Scott; 07-02-2014 at 07:11 PM.. Reason: Please use code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How would I make a find command NOT show the path of a file?

When I do find . -name "*.txt" -size +0 -exec ls {} \; I get something like ./lpi_stdout.txt ./lpi_stderr.txt What would I need to do or pipe it into to strip off those first two characters so I just get lpi_stdout.txt lpi_stderr.txt ? Thanks for the help! (1 Reply)
Discussion started by: LordJezo
1 Replies

2. UNIX for Dummies Questions & Answers

command to find the path of a file

What is the command to find the path of a file if we know the file name and the root directory where the file resides.. For eg. if a file abc.dat resides in /home/mydir/myfiles/. I am looking for a command which will be fired from / directory, takes abc.dat as input and display the path of... (3 Replies)
Discussion started by: abhilashnair
3 Replies

3. UNIX for Dummies Questions & Answers

create PATH from find command output

I'm trying to autogenerate a PATH variable from the output of a find command as follows: PATH=`find $dir -name "*.jar" | sed 's/$/:/'` The output looks similar like this if I echo it: PATH=/path/to/1.jar: /path/to/2.jar: /path/to/3.jar: I want the path to be on one line. I'm on... (3 Replies)
Discussion started by: rein
3 Replies

4. UNIX for Advanced & Expert Users

Help-prompt for path and take this as input in find command

HI , I am trying to wite a script that will prompt me saying " what is path that you want to find ?". once i specify the path, the script should put this path in the find command mentioned below and execute the script: find <path> -ctime +200 -type f -exec ls -l {} \; for example : ... (7 Replies)
Discussion started by: bsandeep_80
7 Replies

5. UNIX for Dummies Questions & Answers

command to find the absolute path

i understand by using the pwd command we get the present working directory. which command is used to find absolute path from home directory to root.. What is absolute path to your and root user's home directory.:confused::confused::confused: (2 Replies)
Discussion started by: shaziafathima
2 Replies

6. Shell Programming and Scripting

Problem with embedded FTP command in Ksh - System Cannot find the specified path.

I have the following FTP embedded in a Ksh script on AIX 5.3 ftp -n <<WHATEVER open 10.101.26.218 user hcistats ******* ascii put $thupdatefile put $thcollectfile quit WHATEVER Here is what my script returns: ... (3 Replies)
Discussion started by: troym72
3 Replies

7. Shell Programming and Scripting

find command not searching path when -newer specified

When this command is issued from a directory other than where the file is located it works fine: find /db2/D01/log_archive/ -name "S0002166.LOG" -type f /db2/D01/log_archive/db2d01/D01/NODE0000/C0000000/S0002166.LOG When I change -name to -newer, it doesn't work. Find only searches the current... (5 Replies)
Discussion started by: fletchdb2
5 Replies

8. UNIX for Dummies Questions & Answers

Find command fails when a space is in the directory path variable

I have a script like this running under OS X 10.8. The problem arises when the find command encounters a space in the path name. I need the "dir" variable as I'll be extending the script to more general use. #!/bin/bash CFS=$IFS IFS=$(echo) set dir = "/Users/apta/Library/Mail\... (3 Replies)
Discussion started by: apta
3 Replies

9. Red Hat

Find command to exclude a specific path

Hi Folks, I want to run the below command and to exclude the specific path like /var/test/support/... . How to achieve using the below command find / -type f \( –perm –4000 –o –perm –2000 \) –print -Siva Please do not use FONT tags inside CODE tags. And, there is usually no reason to... (2 Replies)
Discussion started by: gsiva
2 Replies

10. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
LVEXTEND(8)						      System Manager's Manual						       LVEXTEND(8)

NAME
       lvextend - extend the size of a logical volume

SYNOPSIS
       lvextend [--alloc AllocationPolicy] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--noudevsync] [-i|--stripes Stripes [-I|--stripesize
       StripeSize]]   {-l|--extents   [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}]   |   -L|--size    [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
       [-f|--force] [-n|--nofsck] [-r|--resizefs] [-t|--test] [-v|--verbose] LogicalVolumePath [PhysicalVolumePath[:PE[-PE]]...]

DESCRIPTION
       lvextend allows you to extend the size of a logical volume.  Extension of snapshot logical volumes (see lvcreate(8) for information to cre-
       ate snapshots) is supported as well.  But to change the number of copies in a mirrored logical volume use lvconvert(8).

OPTIONS
       See lvm for common options.

       --noudevsync
	      Disable udev synchronisation. The process will not wait for notification from udev.  It will continue irrespective of  any  possible
	      udev  processing	in the background.  You should only use this if udev is not running or has rules that ignore the devices LVM2 cre-
	      ates.

       -l, --extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}]
	      Extend or set the logical volume size in units of logical extents.  With the + sign the value is added to the  actual  size  of  the
	      logical volume and without it, the value is taken as an absolute one.  The number can also be expressed as a percentage of the total
	      space in the Volume Group with the suffix %VG, relative to the existing size of the Logical Volume  with	the  suffix  %LV,  of  the
	      remaining  free  space  for the specified PhysicalVolume(s) with the suffix %PVS, as a percentage of the remaining free space in the
	      Volume Group with the suffix %FREE, or (for a snapshot) as a percentage of the total space in the Origin	Logical  Volume  with  the
	      suffix %ORIGIN.  The resulting value is rounded upward.

       -L, --size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
	      Extend  or set the logical volume size in units of megabytes.  A size suffix of M for megabytes, G for gigabytes, T for terabytes, P
	      for petabytes or E for exabytes is optional.  With the + sign the value is added to the actual size of the logical volume and  with-
	      out it, the value is taken as an absolute one.

       -i, --stripes Stripes
	      Gives  the number of stripes for the extension.  Not applicable to LVs using the original metadata LVM format, which must use a sin-
	      gle value throughout.

       -I, --stripesize StripeSize
	      Gives the number of kilobytes for the granularity of the stripes.  Not applicable to LVs using the  original  metadata  LVM  format,
	      which must use a single value throughout.
	      StripeSize must be 2^n (n = 2 to 9)

       -f, --force
	      Proceed with size extension without prompting.

       -n, --nofsck
	      Do  not  perform	fsck  before  extending  filesystem  when filesystem requires it. You may need to use --force to proceed with this
	      option.

       -r, --resizefs
	      Resize underlying filesystem together with the logical volume using fsadm(8).

Examples
       "lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3" tries to extend the size of that logical volume by 54MB on physical volume /dev/sdk3.  This is
       only possible if /dev/sdk3 is a member of volume group vg01 and there are enough free physical extents in it.

       "lvextend  /dev/vg01/lvol01  /dev/sdk3"	tries  to  extend  the	size of that logical volume by the amount of free space on physical volume
       /dev/sdk3.  This is equivalent to specifying "-l +100%PVS" on the command line.

       "lvextend -L+16M vg01/lvol01 /dev/sda:8-9 /dev/sdb:8-9"
       tries to extend a logical volume "vg01/lvol01" by 16MB using physical extents /dev/sda:8-9 and /dev/sdb:8-9 for allocation of extents.

SEE ALSO
       fsadm(8), lvm(8), lvcreate(8), lvconvert(8), lvreduce(8), lvresize(8), lvchange(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					       LVEXTEND(8)
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy