1
vote
2answers
121 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) ...
0
votes
3answers
91 views

What's the name of the file system of the operating system in UNIX\Linux?

Is that correct to assume that the operating system is ALWAYS placed in /usr in all kinds of UNIX and Linux? I'm writing a script that has to check the free space in the operating system's file ...
0
votes
2answers
751 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 it will get installed ...
0
votes
2answers
679 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 ...
0
votes
2answers
3k 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 ...