07-02-2012
Warning: the -z option does not work on all UNIX systems.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there a way to grep a word pattern in all files under all subdirectories?
Similar question with rm. To remove files with certain extension in all subdirectories?
Thanks to all who reply! (1 Reply)
Discussion started by: annej33
1 Replies
2. Shell Programming and Scripting
Hi,
How to recursively remove Ctrl M characters in files from a directory and its sub directory ?
I know unix2dos command is there but to remove in bunch of files ... ?
Thanks (7 Replies)
Discussion started by: skdp
7 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a folder that contains a few sub-folders. I would like to zip that folder and KEEP the subfolders. What it does at the moment is taking all the files within the subfolders and zipping them into one big file (zip -r ...). Does anyone know the UNIX command to keep the subfolders in the... (3 Replies)
Discussion started by: gdog
3 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I'm trying to do the following:
zip -r /tmp/foo.zip public/accounts/foo
But the zip that's been made has the whole "public/accounts/foo" path. I want only the foo folder to be zipped. How can I do this? Thanks,
Elías (2 Replies)
Discussion started by: elioncho
2 Replies
5. UNIX for Dummies Questions & Answers
I have 2 directories I want to compare for like files. One directory has 2 subdirectories associated with it, the other directory does not. When I do the dircmp -s I should get only a few files different between the two directories. I do, but the directory with subdirectories prints out all these... (3 Replies)
Discussion started by: MissI
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I want to untar all log files from following tarred directory hierarchy
Log_files.tar.gz/subject*.tar.gz/project*/*.log
It means there are subject1.tar.gz to subject9.tar.gz and in those tarred subect directories there are project1 - project5 directories and in those directories there... (2 Replies)
Discussion started by: rv_trojan
2 Replies
7. UNIX for Dummies Questions & Answers
Hi!
I am trying to find all text files in my home directory that contain the string "C-d" so I tyied this :
cd ~
find . -type f -exec grep -l "C-d" {} +
but it took very long so I tryed this :
ls -aR | xargs file |grep text
but it didn't descend in the directories and it said :... (3 Replies)
Discussion started by: kelamahim
3 Replies
8. Shell Programming and Scripting
Does anyone know of a way to zip the resulting file from a find command?
My approach below finds the file and zips the entire directory path, which is not what I need.
After scanning the web, it seems to be much easier to perform gzip, but unfortunately the approach must use zip.
find `$DIR`... (5 Replies)
Discussion started by: koeji
5 Replies
9. Shell Programming and Scripting
Hi frnds,
My requirement is I have a zip file with name say eg: test_ABC_UH_ccde2a_awdeaea_20150422.zip
within that there are subdirectories on each directory we again have .zip files and in that we have files like mama20150422.gz and so on.
Iam in need of a bash script so that it unzips... (0 Replies)
Discussion started by: Ravi Kishore
0 Replies
10. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
LEARN ABOUT DEBIAN
memdump
MEMDUMP(1) General Commands Manual MEMDUMP(1)
NAME
memdump - memory dumper
SYNOPSIS
memdump [-kv] [-b buffer_size] [-d dump_size] [-m map_file] [-p page_size]
DESCRIPTION
This program dumps system memory to the standard output stream, skipping over holes in memory maps. By default, the program dumps the con-
tents of physical memory (/dev/mem).
Output is in the form of a raw dump; if necessary, use the -m option to capture memory layout information.
Output should be sent off-host over the network, to avoid changing all the memory in the file system cache. Use netcat, stunnel, or
openssl, depending on your requirements.
The size arguments below understand the k (kilo) m (mega) and g (giga) suffixes. Suffixes are case insensitive.
Options
-k Attempt to dump kernel memory (/dev/kmem) rather than physical memory.
Warning: this can lock up the system to the point that you have to use the power switch (for example, Solaris 8 on 64-bit SPARC).
Warning: this produces bogus results on Linux 2.2 kernels.
Warning: this is very slow on 64-bit machines because the entire memory address range has to be searched.
Warning: kernel virtual memory mappings change frequently. Depending on the operating system, mappings smaller than page_size or
buffer_size may be missed or may be reported incorrectly.
-b buffer_size (default: 0)
Number of bytes per memory read operation. By default, the program uses the page_size value.
Warning: a too large read buffer size causes memory to be missed on FreeBSD or Solaris.
-d dump-size (default: 0)
Number of memory bytes to dump. By default, the program runs until the memory device reports an end-of-file (Linux), or until it has
dumped from /dev/mem as much memory as reported present by the kernel (FreeBSD, Solaris), or until pointer wrap-around happens.
Warning: a too large value causes the program to spend a lot of time skipping over non-existent memory on Solaris systems.
Warning: a too large value causes the program to copy non-existent data on FreeBSD systems.
-m map_file
Write the memory map to map_file, one entry per line. Specify -m- to write to the standard error stream. Each map entry consists
of a region start address and the first address beyond that region. Addresses are separated by space, and are printed as hexadecimal
numbers (0xhhhh).
-p page_size (default: 0)
Use page_size as the memory page size. By default the program uses the system page size.
Warning: a too large page size causes memory to be missed while skipping over holes in memory.
-v Enable verbose logging for debugging purposes. Multiple -v options make the program more verbose.
BUGS
On many hardware platforms the firmware (boot PROM, BIOS, etc.) takes away some memory. This memory is not accessible through /dev/mem.
This program should produce output in a format that supports structure information such as ELF.
LICENSE
This software is distributed under the IBM Public License.
AUTHOR
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
USA
MEMDUMP(1)