• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Find Hidden IFS Files

    November 17, 2010 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

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    DRV Tech

    Get More Out of Your IBM i

    With soaring costs, operational data is more critical than ever. IBM shops need faster, easier ways to distribute IBM applications-based data to users more efficiently, no matter where they are.

    The Problem:

    For Users, IBM Data Can Be Difficult to Get To

    IBM Applications generate reports as spooled files, originally designed to be printed. Often those reports are packed together with so much data it makes them difficult to read. Add to that hardcopy is a pain to distribute. User-friendly formats like Excel and PDF are better, offering sorting, searching, and easy portability but getting IBM reports into these formats can be tricky without the right tools.

    The Solution:

    IBM i Reports can easily be converted to easy to read and share formats like Excel and PDF and Delivered by Email

    Converting IBM i, iSeries, and AS400 reports into Excel and PDF is now a lot easier with SpoolFlex software by DRV Tech.  If you or your users are still doing this manually, think how much time is wasted dragging and reformatting to make a report readable. How much time would be saved if they were automatically formatted correctly and delivered to one or multiple recipients.

    SpoolFlex converts spooled files to Excel and PDF, automatically emailing them, and saving copies to network shared folders. SpoolFlex converts complex reports to Excel, removing unwanted headers, splitting large reports out for individual recipients, and delivering to users whether they are at the office or working from home.

    Watch our 2-minute video and see DRV’s powerful SpoolFlex software can solve your file conversion challenges.

    Watch Video

    DRV Tech

    www.drvtech.com

    866.378.3366

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    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

    iTech to Resell CODA Financials for IBM i Whaaa? IBM Gets Stingier with Power Systems Deals

    One thought on “Find Hidden IFS Files”

    • Glenn Gundermann says:
      April 1, 2022 at 10:18 am

      Thank you so much Ted. I either missed this article 12 years ago or I forget this information. This proved very useful today. I was copying a folder from one partition to another and for the life of me, I could not figure why my screens looked different between the two systems. I must have used DSPOPT(*ALL) in a previous session on one system and was showing the dot files. I had no idea so many dot files were there. Very cool! Us readers owe you and other article authors a great debt of gratitude. Thank you for the great work that you do for everyone.

      Reply

    Leave a Reply Cancel reply

Volume 10, Number 36 -- November 17, 2010
THIS ISSUE SPONSORED BY:

Vision Solutions
SEQUEL Software
WorksRight Software

Table of Contents

  • The Top 10 IBM i Security Exposures, Part 1
  • Case-Sensitive SQL Identifiers
  • Admin Alert: Prototype Instructions for Running TCP/IP in i5/OS Restricted State
  • Large Subprocedure Return Values: V7 Brings Relief
  • Find Hidden IFS Files
  • Why Did Passphrase Activation Take Out My ODBC Connection?

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • The Power11 Transistor Count Discrepancies Explained – Sort Of
  • Is Your IBM i HA/DR Actually Tested – Or Just Installed?
  • Big Blue Delivers IBM i Customer Requests In ACS Update
  • New DbToo SDK Hooks RPG And Db2 For i To External Services
  • IBM i PTF Guide, Volume 27, Number 33
  • Tool Aims To Streamline Git Integration For Old School IBM i Devs
  • IBM To Add Full System Replication And FlashCopy To PowerHA
  • Guru: Decoding Base64 ASCII
  • The Price Tweaking Continues For Power Systems
  • IBM i PTF Guide, Volume 27, Numbers 31 And 32

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle