All Questions
5 questions
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) ...
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 ...
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
...
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 ...
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 ...