Re: Help required on the following...
From: Jan Reilink (digiover_at_dsinet.org)
Date: 04/25/03
- Next message: K Stahl: "Re: rm - Arguments too long"
- Previous message: Jan Reilink: "Re: rm - Arguments too long"
- In reply to: pdqd: "Help required on the following..."
- Next in thread: Markku Ojala: "Re: Help required on the following..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Apr 2003 23:01:42 +0200
I know this is comp.unix.misc, but my answers are based on Linux :)
OP doesn't state what OS s/he is using.
Can't answer all questions though
pdqd wrote:
> Hi Friends,
> -
> Could you please guide me on the following...
> Thanks in advance.
>
> 1. How can i use find command so that it searches for only those
> directories for which the user who is running the command has
> permission?
> Also is it possible to skip searching a particular
> directory(directories)?
>
man find
> 2. How to search for a big chunk of text in a file?
>
man grep (man egrep)
man cat
man less
> 3. How to display few lines starting from nth line of a large file (vi
> fails saying memory shortage)
>
> 4. What is the best strategy to remove an entry from the PATH variable
>
> 5. What is the best strategy to remove nth line (or range of lines)
> from a file?
>
> 6. I have a file which has got very large line , how could i use the
> vi to open such a file?
>
vi can display very large lines (but I'm sure even vi has it's
limitations, please define "large line").
man vi, or (in vi) type :viusage or :exusage
> 7. Is it possible to yank a block of text(contiguous but can contian
> partial words, lines etc)?
>
> 8. Is it possible to search for a string in vi with case insensitive
> mode?
>
> 9. If i open many files in vi , how will switch between the windows?
> (like alt-tab feature of win )
>
> 10. How can I know the exact size of a directory? (du <dir-name> lists
> file by file ). also, since the output of the du is in blocks, is
> there any way i can know the size of block in that particular system?
>
man du :
-h, --human-readable
Append a size letter, such as M for binary
megabytes (`mebibytes'), to each size.
-H, --si
Do the same as for -h, but use the official SI
units (with powers of 1000 instead of 1024, so that
M stands for 1000000 instead of 1048576). (New in
fileutils-4.0.)
-m, --megabytes
Print sizes in megabyte (that 1,048,576 bytes)
blocks.
> 11. Is there anyway of recovering a deleted file?
>
> 11. How can i know the size of physical memory , hardisk(total of all
> filesystems) of a system?
>
$ cat /proc/[tab][tab]
($ cat /proc/meminfo for instance)
Regards, Jan
-- Dutch Security Information Network http://www.dsinet.org/
- Next message: K Stahl: "Re: rm - Arguments too long"
- Previous message: Jan Reilink: "Re: rm - Arguments too long"
- In reply to: pdqd: "Help required on the following..."
- Next in thread: Markku Ojala: "Re: Help required on the following..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|