| title | midnight-commander | |
|---|---|---|
| tags |
|
|
| created | 2024-05-25 20:02 | |
| modified | 2023-11-23 18:06:53 UTC | |
| moc | [[_geek-room]] |
- midnight-commander
- Mastering Midnight Commander: A Comprehensive Guide for Novice Linux Users
Midnight Commander (MC) is a feature-rich file manager that uses a text-based interface (TUI). It's popular among Unix-like system users, especially those using Arch Linux, Debian, thanks to its versatile features and intuitive dual-pane navigation system. MC supports a variety of protocols including FTP and SFTP, incorporates a flexible keybinding mechanism, and much more. This article provides insights, tips, and tricks for mastering Midnight Commander, helping Linux users to significantly enhance their productivity.
Arch Linux uses the pacman package manager. To install Midnight Commander, you can use the following command:
sudo pacman -S mcTo launch Midnight Commander, create the alias in your favorite shell. Some distributions and apps can cause significant slow MC start. It is a reason for this alias.
alias mc="mc --nosubshell"To launch Midnight Commander, simply type mc in your terminal which call your alias.
You'll be greeted with a dual-pane interface and a command line prompt at the bottom.
Options > Panel Options > Lynx-like motion(active it: [x])- user:
Options > Appearance > modarin256-defbg, root:Options > Appearance > modarin256root-defbg(transparent background, need some compositor active)
Midnight Commander's power comes to the fore with its extensive set of keybindings, making it a highly efficient tool for file management. Here are some of the most useful ones:
- F1 to F10 These function keys are used for various operations such as help, menu, view, edit, copy, rename/move, mkdir, delete, pull-down menu, and quit respectively.
- Insert Select files.
- Tab Switch between the two panels.
- Ctrl + r Refresh listing.
- Alt + i Open actual directory on inactive panel.
- Ctrl + u Swap panels.
- Alt + t Cycle panel view mode.
- +/- Tag/untag items by pattern.
- * Invert tagging of items
- Alt + s Search/jump to by pattern.
- Ctrl + o Show full MC command line screen.
- Alt + p/n MC command history inline.
- Alt + h MC command history.
- Ctrl + space Calculate selected item sizes (.. calculates all item sizes)
- Alt + . Toggle hidden files.
- Alt + Enter Copy the currently selected file name(s) to the command line.
- Alt + a Paste active/inactive panel directory path
- Ctrl + r Refresh the active panel.
- Shift + F6 Rename selected item.
- Shift + F4 Open new empty file with an internal editor.
- Ctrl + x, then c Open the chmod dialog for the current file.
- Ctrl + x, then o Open the chown dialog for the current file.
- Ctrl + x, then s Open a symbolic link creation dialog.
Remember, you can view the full list of keybindings anytime by pressing F1 (the Help function key) while in Midnight Commander.
Midnight Commander allows for extensive visual customization. You can change the colors of the interface by selecting a different skin. This can be done by navigating to the Options menu, then Appearance.
Midnight Commander comes with an internal file viewer (F3) and editor (F4). These are useful tools for quickly viewing or editing a file without leaving the MC environment.
One of the powerful features of MC is the support for Virtual File Systems (VFS). For example, you can navigate compressed archives or remote systems via Shell link, FTP, SFTP, or SMB just as if they were local directories.
Midnight Commander integrates well with bash. You can use bash commands directly in MC's command line at the bottom of the interface. If you press Ctrl + o, you can hide the panels to access a full bash shell.
MC has a directory hotlist feature (Ctrl + \ ) that stores a list of your favorite directories, allowing you to quickly jump to a directory without typing its full path.
Midnight Commander is a powerful file manager that offers extensive features and customization options. By familiarizing yourself with the keybindings and other tips mentioned in this guide, you can significantly improve your file management efficiency on Arch Linux.
