Sponsored Content
Full Discussion: BORRAR FICHEROS
Top Forums UNIX for Dummies Questions & Answers BORRAR FICHEROS Post 302480712 by nonanov on Wednesday 15th of December 2010 03:22:16 PM
Old 12-15-2010
BORRAR FICHEROS

Hola a todos, tengo varios ficheros core en un directorio:
-rw------- 1 all_adm alliance 11043260 May 03 2010 core.610468.03072405
-rw------- 1 all_adm alliance 273221556 Jul 25 05:07 core.893046.25030410
-rw------- 1 all_adm alliance 273212044 Aug 22 01:39 core.692366.21232618
-rw------- 1 all_adm alliance 273220756 Oct 31 01:05 core.471070.30225829
lo que quiero es borrar todos menos el más reciente, estos ficheros van variando así que la opción de .mtime no me vale, no sé como hacerlo

gracias
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

que Borrar en /var/ ?

hola, quisiera saber que puedo borrar del directorio /var/ para liberar espacio en un servidor en debian 4.0? desde ya muchisimas gracias y saludos (2 Replies)
Discussion started by: rodoga
2 Replies

2. Shell Programming and Scripting

No puedo borrar un renglon

#!/bin/sh # Solo para Argentina :s # License: Sisterware # este script necesita curl e iconv, iconv es porque los del servicio meteorologico no usan utf-8 ¬¬ # 87938 = Ushuaia # 87934 = Rio Grande # 87418 = Mendoza # 87582 = Capital Federal # 87692 = Mar del Plata # 87480 = Rosario #... (1 Reply)
Discussion started by: yamirokuay
1 Replies
gcore(1)                                                           User Commands                                                          gcore(1)

NAME
gcore - get core images of running processes SYNOPSIS
gcore [-pgF] [-o filename] [-c content] process-id... DESCRIPTION
The gcore utility creates a core image of each specified process. By default, the name of the core image file for the process whose process ID is process-id will be core.process-id. OPTIONS
The following options are supported: -c content Produces core image files with the specified content. The content description uses the same tokens as in coreadm(1M). The -c option does not apply to cores produced due to the -p or -g flags. -F Force. Grabs the target process even if another process has control. -g Produces core image files in the global core file repository with the global content as configured by coreadm(1M). The com- mand will fail if the user does not have permissions to the global core file repository. -o filename Substitutes filename in place of core as the first part of the name of the core image files. filename can contain the same tokens to be expanded as the paths in coreadm(1M). -p Produces a core image file in the process-specific location with the process-specific content for each process as config- ured by coreadm(1M). The command will fail if the user does not have permissions to the per-process core file repository. OPERANDS
The following operand is supported: process-id process ID EXIT STATUS
The following exit values are returned: 0 On success. non-zero On failure, such as non-existent process ID. FILES
core.process-id core images ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWtoo | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ Command Syntax is Evolving. Output Format(s) are Unstable. SEE ALSO
kill(1), coreadm(1M), setrlimit(2), core(4), proc(4), attributes(5) NOTES
gcore is unaffected by the setrlimit(2) system call using the RLIMIT_CORE value. SunOS 5.10 11 Feb 2004 gcore(1)
All times are GMT -4. The time now is 02:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy