• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Midnight Commander Comes To IBM i

    March 20, 2019 Alex Woodie

    IBM i professionals who work extensively with files in the IFS will be happy to hear a new software utility has been ported to the IBM i PASE environment that could save them a bunch of time. The open source software, called Midnight Commander, gives developers and administrators a handy command line experience that can help speed up tasks, especially when giving commands to large number of files stored on remote machines.

    Midnight Commander was originally developed in 1994 as a file utility for UNIX, which was beginning to emerge from software labs to challenge minicomputer platforms of the day, such as the AS/400, as well as early Windows operating systems. Miguel de Icaza, who’s known for founding the Mono project (among others), is credited with creating Midnight Commander, but over the years development of the product has become a group effort.

    The utility, which is distributed via a GNU license from www.midnightcommander.org, was largely modeled off Norton Commander, an MS-DOS utility developed in the 1980s by Norton. But Midnight Commander has evolved into its own thing over the years, and the resemblance to that old Norton product today largely is only in the name.

    Midnight Commander presents users with a two-panel, text-based interface that lets them view the directories and files for the machines they’re connected to. Users can also pull up menus of available commands and a history of activity. What really sets Midnight Commander apart, however, is its command extension and subshell execution environments, which are highly customizable.

    Users are able to initiate a slew of basic directory functions with Midnight Commander, including creating, viewing, renaming, moving, and deleting directories. Users can’t create data in Midnight Commander (that’s the job for applications), but they can copy, move, and delete individual files — or even better, groups of files. Integrated FTP and SFTP functionality enables users to work with files across a variety of systems.

    Midnight Commander gives users a handful of special commands for dealing with files or directories in bulk. They can use commands like “%s” or “%t” to indicate which files to execute a given command upon (in this case “the files under the cursor and all highlighted files in the active panel” and ” all highlighted files in the active panel,” respectively).

    Midnight Commander displayed on Ubuntu Linux.

    The software lets users set default programs to use for opening certain file types, which is done using the “enter” button. Text files are opened in a default editor, and users can configure the software to automatically open up other types of files, such as HTML files, in a Web browser.

    Midnight Commander makes extensive use of function keys, and these come in handy when using the command extensions. Command extensions allow the user to specific certain types of commands be applied to individual files or groups of files.

    For example, a user could configure Midnight Commander to automatically archive files with one command, or to initiate file transfer with another. Pressing the F2 button pulls up a handy reference of available commands, while F1 calls the help screens.

    The richness of the command extension environment, along with the speed of the command line, are expected to give Midnight Commander an audience among developers and administrators who feel drag-and-drop GUIs are too cumbersome for some file operations. And while Midnight Commander will appeal to those who like to keep their hands on the keyboard, the software is also mouse-aware, giving customers the option of navigating and issuing commands with the mouse.

    Midnight Commander will likely appeal to developers and administrators who find themselves elbows deep in IFS folders, when a GUI approach is too cumbersome.

    Midnight Commander supports Unix, Linux, MacOS, and other operating systems. Jack Woehr, the lead IBM i support tech for Absolute Performance, and the IBM open source team, headed by open source architect Jesse Gorzinski, are credited with completing the port of Midnight Commander to IBM i’s PASE AIX runtime environment in the middle of 2018.

    “I am a longtime (20+ years) user of MC on Linux, OpenBSD, Mac and Windows and am thrilled to finally have succeeded in building it on IBM i PASE environment!” writes the user “jax” on the Midnight Commander website.

    Woehr also was involved in porting Ublu to IBM i, as well as porting Lynx, a text-only Web browser, to IBM i. “Jack also helped with quality assurance and worked with project owners to upstream all code changes,” Gorzinski wrote in his November 2018 column in IBM Systems Magazine. “In fact, the main code stream for Midnight Commander can now be built for IBM i with no modifications.”

    Midnight Commander supports IBM i 7.3. The software is RPM aware and is available for download on the IBM i server using the new Yum distribution method that debuted recently.

    RELATED STORIES

    RPM And Yum Are A Big Deal For IBM i. Here’s Why

    Open Source Is the Future, So Where Does IBM i Fit In?

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: AIX, FTP, IBM i, IBM i 7.3, Linux, MacOS, OpenBSD, PASE, RPM, SFTP, Ublu, Unix, Yum

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    BMC Touches Clouds with Job Scheduler Assessing IBM i’s Role In Digital Transformation

    5 thoughts on “Midnight Commander Comes To IBM i”

    • Jake says:
      March 20, 2019 at 7:54 pm

      The proper link to the Midnight Commander site has a dash in it:

      http://midnight-commander.org/

      (and yes, they redirect to midnight-commander.org, not http://www.midnight-commander.org)

      Reply
    • bryan says:
      March 20, 2019 at 9:02 pm

      correct website for mc
      https://midnight-commander.org

      Reply
    • Paul Wren says:
      March 21, 2019 at 5:36 am

      You have a typo in the link to the Midnight commander development page. It should be http://www.midnight-commander.org. I cannot see the application in the standard IBM repository. Do we need to add any additional repository locations to be able to install this?

      Reply
      • Paul Wren says:
        March 21, 2019 at 5:47 am

        Never mind, I found it in the repository now.

        Reply
    • Ronnie Willis says:
      March 21, 2019 at 10:14 am

      I think your link is wrong. Should be https://midnight-commander.org/ (you left out the dash.

      Reply

    Leave a Reply Cancel reply

TFH Volume: 29 Issue: 18

This Issue Sponsored By

  • Fresche Solutions
  • COMMON
  • CNX
  • ProData Computer Services
  • 400School.com

Table of Contents

  • Assessing IBM i’s Role In Digital Transformation
  • Midnight Commander Comes To IBM i
  • BMC Touches Clouds with Job Scheduler
  • Four Hundred Monitor, March 20
  • IBM i PTF Guide, Volume 21, Number 11

Content archive

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

Recent Posts

  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23
  • SEU’s Fate, An IBM i V8, And The Odds Of A Power13
  • Tandberg Bankruptcy Leaves A Hole In IBM Power Storage
  • RPG Code Generation And The Agentic Future Of IBM i
  • A Bunch Of IBM i-Power Systems Things To Be Aware Of
  • IBM i PTF Guide, Volume 27, Numbers 21 And 22

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