Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
3 answers
3k views

Are files in /tmp cleaned up by the operating system?

I have a script that generates log files that I place under /tmp I run it on Linux RedHat, Ubuntu, Solaris and AIX. I'm wondering I have to clean the logs periodically by myself (e.g. after 14 days) ...
user1762109's user avatar
1 vote
2 answers
25k views

What is the default path for sudo command?

What is the default path of sudo command? I checked in some Linux flavours and some solaris flavours, it is: /usr/bin/sudo If a Solaris machine is not bundled with sudo, where will it get installed ...
prasanna's user avatar
  • 311
0 votes
2 answers
1k views

Is there an equivalent command for kctune | grep max_thread_proc in SunOS and AIX?

I need to find the maximum threads per processor in the following systems. So far 1. Redhat Linux -> cat /proc/sys/kernel/threads-max 2. HPUX 11.31 [ia64] -> kctune | grep max_thread_proc ...
AabinGunz's user avatar
  • 641
3 votes
3 answers
8k views

Fastest way to get creation and last modification times of a lot of files

Given a directory a sh pattern which yields a subset of files directly in this directory (like *.log) a sh pattern which can, given a filename, what is the fastest way (in ksh) to obtain for each ...
Pierre Gardin's user avatar
1 vote
2 answers
5k views

PS command ouput with fixed width for each column

I want to run command "/usr/ucb/ps auxww" on solaris to extract SZ and RSS values. For some processes these values are not showing and mixing with %MEM value as shown below. USER PID %CPU %MEM ...
goutham's user avatar
  • 121