Trending

#MidnightCommander

Latest posts tagged with #MidnightCommander on Bluesky

Latest Top
Trending

Posts tagged #MidnightCommander

I thought #midnightcommander was good, but then it broke on my Mac and I could no longer use it to open files. This despite much tinkering with mc.ext.ini. I gave up and went to #yazi. Now I am wondering how I ever lived without #yazi. It is soooo good.

0 0 0 0
What is CDPATH ? <script type="text/javascript"><!-- google_ad_client = "ca-pub-1264774456123473"; google_ad_host = "pub-1556223355139109"; /* ad before content */ google_ad_slot = "7657691030"; google_ad_width = 468; google_ad_height = 60; //--> </script> <script src="https://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> <br/><br/> <div style="text-align: justify;">     Has it happened to you wherein you logged in to an account or to an environment and simply printed the command, say "cd log" and your directory gets changed to some log directory. The interesting part is: The log directory is not there in the directory from where you fired the cd command. It was somewhere also, however the cd command switched to it correctly. The question now is:  If the "log" directory is not present in the location from where we are giving the "cd" command, how did we reach the log directory?  The answer to this question is most probably  the <b>CDPATH </b>environment variable would have been set.</div> <br/> <b>1. What is CDPATH?</b><br/>        CDPATH is an environment variable. It looks exactly like the PATH variable containing with many different paths concatenated using ':'.<br/> <a name="more"></a><br/> <b>2. What is the use of CDPATH ?</b><br/> <div style="text-align: justify;">        Say, for example, some directories present in an "X" directory are being accessed frequently by the user. Every time the user wants to traverse to any of these directories present in "X",  he mostly traverses by giving the absolute path which is little time consuming if you have to find it. How nice will it be if we can do "cd" to the particular directory as if that directory which you are looking for is right under your current directory. This is what the CDPATH achieves.</div> <div style="text-align: justify;"> <br/></div> <div style="text-align: justify;">     Normally, when the cd command is given, it checks for the directory name in the current directory and throws error if not found, else traverses to the directory. If the CDPATH is set, the "cd" command starts finding the directory in the list of directories present in the CDPATH variable and then makes the directory switch appropriately.</div> <br/> <b>3. How to set the CDPATH variable?</b><br/>      Setting the CDPATH variable is exactly like setting the PATH variable. For example:<br/> <pre class="gpr1" style="border: 2px groove; margin: 20px; overflow: auto; padding: 6px;">$ export CDPATH=".:/home/guru:/usr" </pre>      This above command will hold good till the session is closed. In order to make this change permanent, we need to put this command in the appropriate <a href="http://unix-school.blogspot.com/2011/07/what-is-profile-file.html" target="_blank"><b>profile file</b></a>. The CDPATH command in this example is set with 3 components: The current directory followed by /home/guru and the /usr.<br/> <br/>   Let us try to test this CDPATH variable. Currently, we are in /home/guru. There are 3 directories present under it.<br/> <pre class="gpr1" style="border: 2px groove; margin: 20px; overflow: auto; padding: 6px;">$ pwd /home/guru $ ls -l | grep ^d drwxr-xr-x+ 1 guru None 0 Feb 9 20:18 C drwxr-xr-x+ 1 guru None 0 Apr 15 13:56 bin drwxr-xr-x+ 1 guru None 0 Apr 15 18:35 perl </pre> Now, let us try to switch to the perl directory. And hence we will be in /home/guru/perl. The switch to "perl" directory happened because the CDPATH contains the dot(.) at first place, and perl is under current directory(.)<br/> <pre class="gpr1" style="border: 2px groove; margin: 20px; overflow: auto; padding: 6px;">$ cd perl $ pwd /home/guru/perl </pre> Now, let us try to switch to the bin directory which is under home whereas we are actually now under perl.<br/> <pre class="gpr1" style="border: 2px groove; margin: 20px; overflow: auto; padding: 6px;">$ cd bin $ pwd /home/guru/bin </pre>     This is how the CDPATH works. This is highly useful when you have some frequently traversed directories in the environment.<br/> <br/> <b>4. How to find the value of the CDPATH variable?</b><br/> <pre class="gpr1" style="border: 2px groove; margin: 20px; overflow: auto; padding: 6px;">$ echo $CDPATH .:/home/guru:/usr </pre> <b>5. If CDPATH is set, will the cd command still search in the current directory by default before referring to the CDPATH?</b><br/> <div style="text-align: justify;">       No. Once the CDPATH is set, the cd command will search only in the directories present in the CDPATH variable only. Hence, it is the responsibility of the user to make sure that the current directory is also present in the CDPATH variable. <br/> Note: This point holds good when only the directory name is specified with cd. cd when given with absolute or relative path does not refer to the CDPATH command.</div> <br/> <b>6. Can the current directory be anywhere in the CDPATH variable?</b><br/> <div style="text-align: justify;">       As such, there is no rule to put the current directory in specific place. However, it SHOULD always be the first component of the CDPATH. It is because if it is not there in first position, the default functioning of the cd command which is to switch to the required directory under current directory may not work. Hence, the cd command should always be made to search for the directory first in the current directory, and then only in the other directories present in the CDPATH variable.</div> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <div class="horizontal-social-buttons" style="padding:10px 0 10px;"> <div style="float:left;"> <a class="twitter-share-button" data-count="horizontal" data-lang="en" data-related="" data-text="What is CDPATH ?" data-url="https://www.theunixschool.com/2012/04/what-is-cdpath.html" data-via="" href="https://twitter.com/share">Tweet</a> </div> <div style="float:left;"> <fb:like colorscheme="light" font="" href="https://www.theunixschool.com/2012/04/what-is-cdpath.html" layout="button_count" send="false" show_faces="false"></fb:like> </div> <div style="float:left;"> <span class="st_sharethis_hcount" displaytext="ShareThis" st_img="" st_title="What is CDPATH ?" st_url="https://www.theunixschool.com/2012/04/what-is-cdpath.html"></span> </div> </div> <div style="clear: both;"></div> <div style="clear: both;"></div>

#MidnightCommander just told me, that setting the #CDPATH environment variable might be a good way to save some keystrokes when using the `cd` command.

I'm inclined to agree with him.

www.theunixschool.com/2012/04/what-is-cdpath.h...

#Linux #UNIX

0 1 0 0

Az nekem külön könnyet csal a szemembe, hogy itt ez a #linux #homeserver em és be tudok rá #SSH val csatlakozni a bármilyen eszközről, majd mc és már fut is a #MidnightCommander .
Komolyan ugrálok néha örömömben az ilyen apróságoktól is, ami másoknak már ezer éves dolog.
#ByeWindows #HelloLinux

2 0 0 0
Xonsh and Midnight Commander

Do you use xonsh? Do you hate it when midnight commander doesn't exit into the directory you were in?

This post has the fix:

blog.nawaz.org/posts/2018/Apr/xonsh-and...

#mc #midnightcommander #xonsh

0 1 0 0
A Guide to Midnight Commander

Years ago I made a presentation at work about #midnightcommander. The slides are at this link:

blog.nawaz.org/posts/2012/Dec/a-guide-t...

#mc

0 1 0 0
My FAVORITE File Manager - Complete Midnight Commander Tutorial
My FAVORITE File Manager - Complete Midnight Commander Tutorial YouTube video by Tech Craft

Check out this Midnight Commander tutorial: youtu.be/fJOkuaihAek?...
Learn the basics of this free, cross-platform file manager inspired by Norton Commander. Perfect for efficient file management! 🚀
#MidnightCommander #FileManager #LinuxTips

0 0 0 0

Added #midnightcommander to the must have #tui list

0 0 0 0
Far Manager Official Site : main

#FarManager 3.0.6363.3958 has been released ( #FileManager / #FileManagement / #NortonCommander / #TotalCommander / #DoubleCommander / #MidnightCommander / #Krusader ) farmanager.com

0 0 0 0
Midnight Commander

#MidnightCommander 4.8.32 has been released ( #GNU / #MC / #FileManager / #FileManagement / #NortonCommander / #FarManager / #TotalCommander / #DoubleCommander / #Krusader ) midnight-commander.org

0 1 0 0
Double Commander

#DoubleCommander 1.1.17 gamma has been released ( #FileManager / #FileManagement / #NortonCommander / #FarManager / #TotalCommander / #MidnightCommander / #Krusader ) doublecmd.sourceforge.io

0 0 0 0
Midnight Commander

#muCommander 1.5.0 has been released ( #FileManager / #FileManagement / #NortonCommander / #FarManager / #TotalCommander / #MidnightCommander / #DoubleCommander / #Krusader ) www.mucommander.com

0 0 0 0

#MidnightCommander 4.8.31 has been released (#GNU/#MC/#FileManager/#FileManagement/#NortonCommander/#TotalCommander) midnight-commander.org

0 0 0 0

6) #QuattroPRO es otra hoja de cálculo, una app noventera que desplazó desde #Lotus123 y cedió ante Excel de MS y LibreOffice Calc.

#Norton #NortonCommander es la app era gestor de archivo ochentera y compite con #MidnightCommander y FAR de #7zip (@7zip) FIN (3/3)

0 0 0 0