How to Install and Use Midnight Commander (MC) on Linux
HardReset.InfoJanuary 17, 20269 min47 views
15 connectionsΒ·17 entities in this videoβInstalling Midnight Commander
- π» To install Midnight Commander (MC) on Ubuntu/Debian, open the terminal and run the command
sudo apt install mc. - π You may need to enter your password and confirm the installation by typing 'Y' for yes.
Starting and Navigating MC
- π Once installed, start MC by typing
mcin the terminal and pressing Enter. - π MC defaults to the home directory, displaying files and folders.
- π By default, hidden files (those starting with a '.') are not shown. These include configuration files and directories like
.cacheor.config. - βοΈ MC features two panels (left and right) for file management. Use the Tab key to switch focus between them.
Core Functionality and Keyboard Shortcuts
- β¬οΈβ¬οΈ Use the up and down arrow keys to navigate through files and directories within a panel.
- π To enter a directory, select it and press Enter.
- β©οΈ To go back to the parent directory, navigate to the
..entry and press Enter. - π‘ F1 displays help, F2 is the user menu, F3 views a file, F4 edits a file, F5 copies, F6 moves/renames, F7 creates a directory, and F8 deletes files or directories.
File and Directory Management
- β To create a new directory, press F7, enter the desired name (e.g., 'new folder'), and press Enter.
- π To create or edit a file, press F4. The default editor is Nano. After making changes, save with Ctrl+O, name the file (e.g.,
test_file.txt), press Enter, and exit with Ctrl+X. - π Use F3 to view the content of a selected file.
- ποΈ To delete a file or directory, select it and press F8. Confirm the deletion by pressing 'Y' for yes.
Advanced Features and Exiting
- π₯οΈ Ctrl+O toggles between the MC interface and the underlying terminal, allowing you to run commands directly.
- π Ctrl+R refreshes the file view if changes made in the terminal are not immediately visible in MC.
- πͺ To quit Midnight Commander, press F10. If F10 does not work, you can exit by switching to the terminal using Ctrl+O and typing
exit. - π±οΈ MC can also be launched via its icon if available in your desktop environment.
Knowledge graph17 entities Β· 15 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
17 entities
Chapters4 moments
Key Moments
Transcript33 segments
Full Transcript
Topics15 themes
Whatβs Discussed
Midnight CommanderMCLinuxUbuntuDebianTerminalFile ManagementCommand Line InterfaceNano EditorHidden FilesDirectory CreationFile DeletionFile CopyingFile EditingKeyboard Shortcuts
Smart Objects17 Β· 15 links
ProductsΒ· 7
ConceptsΒ· 10