Open Telegram channel - https://t.me/PHPnoob
PHP Help Chat - https://t.me/php_noob
Midnight Commander (MC) is a powerful text-based file manager for Unix-like systems like Linux. MC offers a user-friendly interface for navigating the file system, copying, moving, deleting files, and performing other operations.
This video demonstrates how to effectively use the Midnight Commander (MC) file manager to navigate the Linux file system. Midnight Commander is a text-based interface that allows you to easily manage files and folders directly from the terminal. Here are the main points we'll cover:
Launching Midnight Commander:
Open a terminal.
Enter the mc command to launch Midnight Commander.
Midnight Commander Interface:
Description of the two-pane interface, where each pane represents a separate file system window.
Key interface elements: menu bar, current path, file and folder list, command line.
Navigating the file system:
Using the arrow keys to navigate files and folders.
Opening folders by pressing Enter.
Going to the root directory, home directory, and previous directories.
Basic operations with files and folders:
Copying and moving files: Selecting files with the Insert key, using the copy (F5) and move (F6) functions.
Creating new directories and files (F7 and F4).
Deleting files and folders (F8).
File search:
Using the search function for files by name or content (Alt + ?).
Working with archives:
Viewing and extracting the contents of archives (zip, tar, and others).
Editing and viewing files:
Opening files in the built-in text editor (F4).
Viewing files without opening them in an editor (F3).
Configuring Midnight Commander:
Changing display and behavior settings via the menu bar.
Saving settings for future sessions.
Additional features:
Work with FTP and SSH connections for remote file management.
Configure custom commands and shortcuts to speed up your work.
00:00 Installing Midnight Commander
01:00 Viewing Files
02:00 Editing Files with mcedit
04:00 Executing Bash Commands and Hiding Panels with CTRL+O
05:00 Copying Files with F5 and Creating a Directory with F7
07:00 Changing the Panel Display Mode
09:00 Calculating the Directory Size with CTRL+SPACE
10:00 Using as an SSH and FTP Client
11:00 Changing Midnight Commander Settings
13:00 Searching for Files by Name Mask and by Contents
16:00 Selecting a Group of Files by Mask
18:00 Using chmod and chown in mc
20:00 Running on a Server with an SSH Connection
*Basic Hotkeys*
F1: Help
F2: User Menu
F3: View File
F4: Edit File (Edit file)
F5: Copy
F6: Move/Rename
F7: Make directory
F8: Delete
F9: Menu
F10: Quit MC
Navigation
Up/Down arrows: Move through the file list
Left/Right arrows: Switch between panels
Enter: Open a directory or file
Tab: Switch between panels
Insert: Select a file/directory
Ctrl + Enter: Paste the current file name into the command line
Working with files and directories
Alt + Enter: Paste the full path of the current file into the command line
Alt + ?: Find file
Ctrl + R: Refresh panel contents
Ctrl + O: Switch between MC and the command line
Alt + F1/F2: Device selection menu Selection menu) for the left/right panel
Ctrl + X then C: Copy to clipboard
Ctrl + X then V: Paste from clipboard
Working with Text
Ctrl + *: Invert selection
Ctrl + S: Quick search
Ctrl + X then S: Insert a wildcard string
**Ctrl + **: Close the current directory and go up one level
Working with Archives
Enter: Open an archive as a directory
F2 then U: Unzip a file
Panels
Ctrl + U: Swap panels
Ctrl + P: Previous command in the command line
Ctrl + N: Next command in the command line
Alt + C: Compare directories
Modes
Alt + T: Toggle between text and graphics modes
Alt + I: Toggle hidden files mode
Alt + O: Show/hide the status bar
Advanced
Alt + .: Hide/show hidden files
**Ctrl + **: Close the current directory and go up one level
Ctrl + G: Go to the specified location
#linux #ssh #training #programming