fhg
Volume 10, Number 36 -- November 17, 2010

Find Hidden IFS Files

Published: November 17, 2010

by Ted Holt

Everybody knows that the Work with Links (WRKLNK) command lists all the files (including subdirectory entries) in an IFS directory, right? Well, to quote Ira Gershwin, it ain't necessarily so. Your system may have IFS files that you don't know about.

One of the UNIX conventions that the IFS has inherited is that files whose names begin with a period ("dot") are considered to be hidden. By default, their names are omitted in directory listings. Hidden files are commonly used for system files, configuration files, and temporary files. But there's nothing to stop other people from beginning file names with a dot. I have heard that people of nefarious intentions use hidden files to store things in unauthorized places.

One of the usual hidden files that you should get acquainted with is .profile (dot profile). The system executes the commands in this file whenever you start a Qshell session. Place .profile in your home directory. The typical use of .profile is to set environment variables and shell options.

Other applications may also create hidden files. For example, my home directory has a .eclipse directory because of my use of Websphere Development Studio.

Two hidden directories are . and .. (dot and dot-dot). Dot is a link to the directory that contains it. Dot-dot is a link to the parent directory. You can reference these directory names when it suits your purpose. Here are two examples from Qshell.

cd ..
cp abc.dat ./backup/abc.bak

The first command changes the current directory to the parent of the current directory. That is, it navigates up one level in the directory tree. The second command copies file abc.dat (in the current directory) to file abc.bak in the backup directory that is found one level below the current directory.

As for finding these files, here are two ways. First, use the WRKLNK command with Display Option *ALL.

WRKLNK DSPOPT(*ALL)

The default value of DSPOPT is *PRV, which means use the setting--*USER or *ALL--from the last time you ran WRKLNK.

In Qshell, use the –a option to see hidden files.

ls -a</a>

I need to share one last bit of information. IFS files also have an attribute--PC_HIDDEN--that you can change with the CHGATR (Change Attribute) CL command or Qshell's attr command. This attribute has nothing to do with the first character of a file name. That is, a file named with an initial dot may have the PC_HIDDEN attribute, and a file that does not begin with a dot may have the PC_HIDDEN attribute. If you want to know more about this attribute, see the articles listed below under Related Stories.


RELATED STORIES

Admin Alert: Treating IFS Objects Like Stream File Objects

Presenting the CHGATR Command



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
SEQUEL SOFTWARE


On Tuesday, November 30, see what SEQUEL software
can do for you.

During a FREE Webinar and demo, you’ll see how easy
it is to use SEQUEL dashboards to display data;
create SEQUEL objects with run-time prompts;
build SEQUEL reports; and access data
using a Web browser.

Click here to discover why organizations everywhere
think SEQUEL software is the ideal way to
access, display, and analyze data.



Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Erwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

SEQUEL Software:  FREE Webinar. See what SEQUEL software can do for you. Nov 30
LANSA:  FREE Webinar. "Think Beyond Modernization." Nov 18, Dec 1, Dec 16
COMMON:  Join us at the 2011 IT Executive Conference, May 1-3, in Minneapolis, MN


 

IT Jungle Store Top Book Picks

BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

The iSeries Express Web Implementer's Guide: List Price, $49.95
The iSeries Pocket Database Guide: List Price, $59
The iSeries Pocket SQL Guide: List Price, $59
The iSeries Pocket WebFacing Primer: List Price, $39
Migrating to WebSphere Express for iSeries: List Price, $49
Getting Started with WebSphere Express for iSeries: List Price, $49
The All-Everything Operating System: List Price, $35
The Best Joomla! Tutorial Ever!: List Price, $19.95


 
The Four Hundred
Crazy Idea Number 528: Apple Mac OS X on Power Systems

IBM Adds Smaller Power 720 i Solution Edition

IBM i Future Reflected in LANSA 2010 iPulse Survey

As I See It: The Importance of Being Important

Wake Up, America--And the Rest of You, Too

Four Hundred Stuff
Infor's New System i GM Brings Enthusiasm to Job

LaserVault Aims for Simplicity with New IBM i Backup Appliance

IBM Consolidates Rational Team Concert Products, Simplifies Licensing

Talend Takes It Up a Notch with Sopera Acquisition

Quadrant Rolls Out IntelliChief Update

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
September 25, 2010: Volume 12, Number 39

September 18, 2010: Volume 12, Number 38

September 11, 2010: Volume 12, Number 37

September 4, 2010: Volume 12, Number 36

August 28, 2010: Volume 12, Number 35

August 21, 2010: Volume 12, Number 34

TPM at The Register
Cray kicks out midrange XE6m super

SGI gets its HPC mojo back with CPU-GPU hybrids

Amazon adds GPUs to EC2 HPC clouds

IBM to ship GPU blade server in December

AMD laughs at Intel with Opteron Bulldozers

Top 500 supers: China rides GPUs to world domination

RHEL 6: how much for your package?

Nvidia poised to challenge Jobs on tablets

Spin-out OS33 uncloaks in puff of cloud, lets tools hang out

Cisco to 'power through' tough fiscal 2011

Red Hat launches Enterprise Linux 6

Platform revamps grid control tools

THIS ISSUE SPONSORED BY:

Vision Solutions
SEQUEL Software
WorksRight Software


Printer Friendly Version


TABLE OF CONTENTS
Large Subprocedure Return Values: V7 Brings Relief

Find Hidden IFS Files

Why Did Passphrase Activation Take Out My ODBC Connection?

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2010 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement