Most of the Command Line File use text based interface, although we indicate them with command line interface. Sometimes we need more than what SSH offers by default with ls command. Here Are Linux, MacOS X Command Line File Managers For Using on SSH. In a previous article, we actually talked about on of them – Midnight Commander.
Precautions For Using Command Line File Managers on SSH
Obviously, these file managers can eat up memory while running. User must be careful with commands in order to avoid unintentionally deleting or moving important files. These experiments are better on a development server.
As these tools are getting root access, a hacker if somehow intrude can set cronjob to fetch or move files with lower privilege. These tools are good for checking the log files in log directory.
Few Command Line File Managers For Using on SSH
Midnight Commander
---
Most known console file manager and directory browser. It provides quick way to copy, move or delete multiple files, browse inside archives and undelete files. We can install Midnight Commander with simple command :
1 2 3 4 5 6 | # centOS, REHL yum -y install mc # debian, ubuntu, kali linux apt -y install mc # MacOS X homebrew brew install midnight-commander |
Here is official website of Midnight Commander :
1 | https://midnight-commander.org |
Type mc
and hit enter/return key to launch Midnight Commander. One thing you possible need to change – the stuffs displayed on the right hand side pane. Click on the Right option on Midnight Commander menu and scroll down to Quick view or Info option menu and hit enter. In this way, left hand side becoming file browser, while right hand side giving the details on selection.
Last File Manager
Another known console file manager and directory browser. It is lighter. We can install Last File Manager with simple command :
1 2 3 4 | # centOS, REHL yum -y install lfm # using pip pip install lfm |
Here is official website of Last File Manager :
1 | https://inigo.katxi.org/devel/lfm/ |
Other Options
We are aware of other options like Ranger :
1 | http://ranger.nongnu.org |
or vimfm :
1 | http://vifm.info/manual.shtml |
or different approach like :
1 2 | https://help.ubuntu.com/community/Byobu https://www.gnu.org/software/screen/ |
But we have an easy way which needs nothing to install.
Vim and Emacs
Suppose, you are at /var/log
directory :
1 | cd /var/log |
You can open that directory on vim editor with this command :
1 | vim . |
As it has endless bugs, these are used :
1 2 | https://github.com/Shougo/vimfiler.vim https://github.com/scrooloose/nerdtree |
Emacs is better over vim for this purpose :
1 2 | yum -y install emacs-nox apt -y install emacs-nox |
Thereafter on Emacs you need these two :
1 2 | https://github.com/bbatsov/projectile https://github.com/jaypei/emacs-neotree |
Conclusion
Midnight Commander is practical choice with huge documentation. Vim is great for easy works. Emacs is difficult to configure on server.
Tagged With command promt midnight commander , file managers that use ssh , ranger file manager with byobu , undelete files in ubuntu , vimfm linux , windows file managers ssh