• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1565
  • Last Modified:

AIX 6.1 Missing /usr/local/bin Path and other questions

I have just complete my first AIX 6.1 install and need to restore a number of files from our old server to our new one.

Anyway I found that my new server has a /usr directory but is missing the /local/bin subfolders? Is it ok for me to recreate the folder manually. I noticed on my old server has the owner of the folder listed as bin.

Other questions.
1) Should I restore the crontab from my older server to the new one or is it better to recreate a fresh crontab.

2) My old server used a program called NetRC to allow for automatic FTp login to a remote server. Is this program natice to AIX or something I need to download or can it be restored from my old server to new server via backup?
  • 6
  • 5
1 Solution
You can create /usr/local/bin, no problem.

mkdir -p /usr/local/bin

It should be owned by root and have permissions 755 (drwxr-xr-x).

Giving it to "bin" is not wrong, however, just uncommon.

You can restore the crontabs, they're compatible

Location is /var/spool/cron/crontabs/userid

Just take care to restart cron after manipulating a crontab with other tools than "crontab". Do this by simply killing cron, it will come back automatically due to "respawn" in inittab.

I'm not aware of a program "NetRC". Do you mean the command file ~/.netrc ?

This file is supported by FTP under AIX, and you can copy it without worries.

compdigit44Author Commented:
Sorry for the confusion I ment .Netrc

Also what is emacs???
I think you meant ".netrc". This is just a file containing FTP commands and macros, suitable for automating FTP transfers.

The format of this file is compatible across AIX and FTP versions, so you can reuse it.

Here is the format description:

emacs is a sophisticated text editor. It's  on the AIX toolbox.

But I rather think you mean the "emacs" option of the Korn shell.
If this option is set you can use emacs-style keys for command line editing.
Contrast this with the "vi" option, which allows for using vi-style keys and key sequences for the same purpose.

This is about the Emacs Editing Mode in Korn shell:

... and this is the same for VI mode:
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

compdigit44Author Commented:
Does emacs have to be installed using the expansion DVD?
compdigit44Author Commented:
Is there an easy way to see how much physical disk space is availible vs how much has been assigned to each file system
>> Does emacs have to be installed ... <<

If you plan to use the emacs editor you must install it from the Toolbox CD (not the Expansion DVD), or get it from here:

(Don't worry about "aix5.1" in the file name. It works under AIX 6.1 as well).

On the other hand, if you just want to use emacs-style command line editing in ksh there is no need to install anything. It's already built into ksh.

>> how much physical disk space is availible<<

You can see it on a per-volume-group basis with

lsvg vgname

next to "TOTAL PPs:"

The same command shows the total assigned disk space (again per volume group) next to "USED PPs:".

>> how much has been assigned to each file system <<

df -m

as usual.
compdigit44Author Commented:
I restore the crontab from my old server to new one then rebooted but when I do  crontab -l none of my jobs are listed
Did you place the crontab into this directory:


with your username as the filename, e.g.


with your user as the owner of the file?

compdigit44Author Commented:
yes I restored the entire /var/spool/cron/crontabs path
ls -l /var/spool/cron/crontabs

Do you see valid user/group names or just numbers in the 3./4. columns?
compdigit44Author Commented:
I found my problem. my restore did overwrite the files. I ran the job again and it work...

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now