Die sieben Dateitypen unter Linux

„Alles ist eine Datei.“ Das ist eines der grundlegenden Prinzipien von Linux und Unix-Systemen. Red Hat Enterprise Linux (RHEL) und alle anderen Linux-Distributionen sowie Unix-ähnliche Systeme unterscheiden sieben verschiedene Dateitypen, die unterschiedliche Funktionen erfüllen. Diese Typen erkennt man leicht mit dem Befehl ls -l am ersten Zeichen in der Ausgabe. Dieses Wissen ist essenziell für jeden Linux-Admin, unabhängig von der Distribution. Die sieben Dateitypen im […]

https://andreas-moor.de/die-sieben-dateitypen-unter-linux/

I managed to create an #encrypted #Linux #Filesystem on a #USBStick. The reason I wanted this is that I want to back up some directories, which contain secure information and also #NTFS, the one that comes on most drives, doesn’t know how to handle #SymbolicLinks properly. I don’t need or want to share the stick with any non-Linux machines.

#GNU #FreeSoftware #LUKS

However, I still had to change some #SymbolicLinks, and it was quicker to delete them and re-link them with #ln. Everything went OK until the link from /usr/lib64 to /lib64. As soon as I deleted, I couldn’t execute anything and I was left with a system which couldn’t even get to #BootUp, let alone beyond it.

#GNU #Linux #ShaggyDogStory

When you *finally* remember the order of parameters for "ln -s" ... 👀🤣

Maybe there's hope for avoiding the "three USB-A insertions" maneuver sometime before retirement 🤔🙄👾

#linux #sysadmin #devops #cli #prompt #systemadministration #symboliclinks #geek

Find And Delete Broken Symlinks In Linux - OSTechNix

This brief tutorial explains how to find the broken symlinks and delete them on Linux using 'symlinks' utility and "find" command.

OSTechNix
[Linux Tips] How To List Symlinks On Linux - OSTechNix

If you've created some symbolic links a long time ago and completely forget about them, this tip will help to list symlinks on Linux.

[Quick Tip] How To List Symlinks On Linux - OSTechNix

If you created some symbolic links or symlinks or soft links a long time ago and completely forget about them, this tip will help to list symlinks on Linux.

OSTechNix
How To Find Broken Symlinks And Delete Them On Linux - OSTechNix

This brief tutorial explains how to find the broken symlinks and delete them on Linux using 'symlinks' utility and "find" command.

OSTechNix

Make Baldur’s Gate Enhanced edition portable.

The following batch file will create symbolic links to set your save folder to the game folder instead of “My Documents”. This is useful if you intend to play the game portable. For example from a USB stick if you intend to be moving between different computers.

In the original Baldur’s Gate you had your save files in your local path, this is a workaround to make the enhanced edition act the same way.

Instructions

  • Move the following files from your “My Documents\Baldur’s Gate – Enhanced Edition” folder into the “Baldur’s Gate – Enhanced Edition” install folder
    • Baldur.lua
    • characters
    • mpsave
    • portraits
    • save
  • Copy the following code into your favourite plain text editor or notepad or download it directly by right clicking the following link and selecting “Save link as”

    @ECHO OFFFOR /F "tokens=3 delims= " %%G IN ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"') DO (SET MYDOCUMENTS=%%G)mkdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition"rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\portraits"rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\save"rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\characters"rmdir "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\mpsave"del "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\Baldur.lua"pausemklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\portraits" "%~dp0\portraits"mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\save" "%~dp0\save"mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\characters" "%~dp0\characters"mklink /d "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\mpsave" "%~dp0\mpsave"mklink "%MYDOCUMENTS%\Baldur's Gate - Enhanced Edition\Baldur.lua" "%~dp0\Baldur.lua"pause
  • Save it as anything.bat in your Baldur’s Gate Enhanced edition install folder.
  • Run anything.bat when the black window says press any key to continue, do so until the window disappears.
  • Check that the folders in your “My Documents\Baldur’s Gate – Enhanced Edition” now have a little arrow on their icons. This indicates that they are not the actual files/folders but symbolic links.
  • When you move to a new computer run anything.bat again and start the game!
  • Baldur’s Gate 2 Enhanced editon

    Repeat the same steps as above but for the folder “Baldur’s Gate II – Enhanced Edition” and instead copy and paste the following  or right click this and select “Save link as”.

    @ECHO OFFFOR /F "tokens=3 delims= " %%G IN ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal"') DO (SET MYDOCUMENTS=%%G)mkdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition"rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\portraits"rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\save"rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\characters"rmdir "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\mpsave"del "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\Baldur.lua"pausemklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\portraits" "%~dp0\portraits"mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\save" "%~dp0\save"mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\characters" "%~dp0\characters"mklink /d "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\mpsave" "%~dp0\mpsave"mklink "%MYDOCUMENTS%\Baldur's Gate II - Enhanced Edition\Baldur.lua" "%~dp0\Baldur.lua"pause

    Caveats

    May require administrative rights on the computer you’re on.

    After moving to another computer you may have to run the installer for the OpenAL codec once.

    https://nirklars.wordpress.com/2017/04/13/baldurs-gate-enhanced-edition-local-save-folder/

    #baldurSGate2EnhancedEdition #baldurSGateEnhancedEdition #localSaveFiles #portable #symbolicLinks

    Notepad++