0
votes
3answers
42 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
0
votes
1answer
84 views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
2
votes
2answers
147 views

UNIX command for deleting / removing files on today's date

I want to remove all the files in the directory I am in currently in that were created today. So if today is April 3rd then the UNIX commond I am asking for would remove someFile2, someFile3, ...
0
votes
1answer
23 views

Not able to reference softlinks in a script

we have couple of softlinks to scripts a directory in our current directory. Let's take we have two softlinks , script1 and script2. We are referencing script2 from within a script1 like below. . ...
1
vote
1answer
24 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
0
votes
1answer
39 views

editing string using sed or grep

first of all please execuse my ignorance on UNIX. I am quite new. I have lot many sql files that contains following string ${DB_USERNAME}.${TABLE_NAME} Can anyone please tell me how could I change ...
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
1answer
476 views

How do you extract a file using tar in AIX?

On a NORMAL Unix distro, tar zxvf works but seems like my machine has some super old version of tar that doesn't have the right parameters. -bash-3.00$ tar zxvf qemu-1.7.0.tar.bz2 Usage: tar ...
0
votes
1answer
1k views

SSH Issue on AIX 6.1

I recently upgraded the openssl version on AIXX 6.1 server. The install went fine. But now I'm unable to start new ssh sessions from puty to the server and I'm getting the error "Connection ...
0
votes
0answers
21 views

Add a path in $PATH globally for every user

Do we have anyway to add a path globally so that each user gets it in $PATH. I want to add path of ANT so that each user doesn't need to add it in his $PATH variable.
0
votes
1answer
105 views

666 permission even after making umask= 0000

I made my umask = 0000. However when I am creating a file it has 666 permission. Although directories get 777 , that's alright. Also my aim is to create file/dir with permissions 774, I guess umask ...
0
votes
1answer
221 views

grep: can't open nohup.out

I am doing recursive grep (grep -r) but it is failing saying grep: can't open nohup.out How to make it going and grep in all directories. I have some idea about nohup but I am not interested in it. ...
1
vote
1answer
271 views

ls -l output difference between files and directories?

I looked at IBM's site and read the definition for ls -l, but could not find an answer to my question. When issuing an ls -l command on AIX, what is the explanation for the different 'file size' ...
0
votes
0answers
150 views

On an AIX LPAR: If a proces uses 0.3% CPU (ps aux), how much physical CPU does it use?

On an AIX LPAR: If a proces uses 0.3% CPU (ps aux), how much physical CPU does it use? userx 9240576 0.3 2.0 32260 34604 - A Aug 13 114:19 ProcessX The LPAR has the following ...
0
votes
1answer
51 views

Defaulting file permissions for any file being kept in a specific folder

I'm Using AIX. I have a folder owned by me. Permissions for the folder are 777. That means anyone can keep their files in this folder. But I want the files to be kept only with 777 permissions. But ...
3
votes
1answer
296 views

Delete old log files in AIX

I am trying write a script to delete old log files in \var\log\applog\nmon on my AIX system. We usually get alerts that the file system is almost full and at the moment delete old files by hand. So ...
0
votes
1answer
3k views

Setting timezone in AIX

The timezone is set to "CET" but date displays CEST $ echo TZ CET $ date Tue Apr 16 15:56:57 CEST 2013 Noticed the timezone on another similar system is "CET0" (not sure what the 0 means here!). ...
0
votes
1answer
984 views

Using find with -exec gzip and grep

I have a bunch of zipped up log files and I want to search them all for a string. I tried this but it's not working: find ./ -name "*.log.zip" -exec gzip -dc {} | grep ERROR \; It's giving me: ...
-1
votes
2answers
420 views

Resolving an alias to a remote server [closed]

I have what I think is called an IP alias, which is used to access a Windows file server from a Unix server. The path on Unix looks something like: /folder/file.txt which is somehow resolved as: ...
1
vote
1answer
485 views

aix 5.3 cannot execute or load .profile automatically when login

I am using AIX 5.3, after I login as an Oracle user, I got a prompt to ask me to give the oracle home directory. If I manually type in ". .profile", it would work. My AIX team has built this new ...
0
votes
1answer
268 views

AIX auto completion: how to show a whole file name by type in only a few letters

I used to work on Redhat Linux and really enjoy its feature that I can only type a few letters on the command line, and the rest of a file name would show up. I am running AIX 5 or 6 now, and it does ...
1
vote
1answer
93 views

zgrep not working on the AIX platform

zgrep does not work in AIX and gives the following error ap61cp01> zgrep 9 ap_balance_bucket9_20120718.txt.gz gzip: ap_balance_bucket9_20120718.txt.gz: Permission denied Please let me know the ...
2
votes
3answers
1k views

Split a file on Windows and join back together on UNIX?

I have a process that involves transferring files from the Windows LAN to an AIX UNIX server using FTP through a VPN connection. The problem is that some of the files are very large -- up to 4gb. The ...
0
votes
2answers
1k views

Limit CPU usage / Cores on AIX process?

We have two processes running on an AIX machine, one is Oracle the other is Business Objects. BO takes nearly 100% CPU cycles when running and Oracle is unable to process at an acceptable speed ...
7
votes
5answers
5k views

How can I compare two directories, one being a remote directory?

I want to compare two directories, one is local and the other is on another machine. How can I do that? Can I do it with diff?
0
votes
1answer
355 views

Installing websphere in AIX (Unix)

I want to install web-sphere 6.1 in machine which has AIX OS. What is the command to install it? I need to install it from telnet. I have using tried the following command, but the installation ...
0
votes
2answers
797 views

Unix basic shell script help needed please?

I need some help writing a basic Unix shell script that will run on AIX: Loop that will run a netstat command (netstat -an| grep 16752| grep ESTABLISHED| wc -l) that counts sessions every second and ...
0
votes
1answer
34 views

How to confirm source was correctly installed

I've installed CFEngine from source (for those of you who aren't familiar with the product, check out the wiki page) on an AIX server. I had some issues setting it up but finally got it to gmake ...
2
votes
1answer
334 views

is there any way to install AIX on a normal desktop for practice purpose?

is is possible with any emulator like QEMU or PearPC ? or if not possible where can we get AIX box access ?
0
votes
0answers
92 views

Overlapping lines in AIX 5.3

When I type commands and hit enter my cursor line for some reason appears on the the second line from the end of the output: tomcat [server] /home/tomcat: ls -l total 24 -rwxr-x--- 1 tomcat dev ...
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 ...
0
votes
1answer
111 views

Memory consumption when running multiple copies of a process on a UNIX AIX server

On a UNIX AIX server if I start multiple copies of the same process will memory be allocated for the code, data and stack for each copy of the process ?