Tag Archives: Bash

How to delete all files in a folder EXCEPT certain ones in BASH

Imagine you have a folder that has about 20 files that you need and like 100 files that you don’t. In this case, there is a very simple bash script that allows you to do that in a jiffy! Here … Continue reading

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

How to change the Linux prompt

Sometimes the Linux prompt doesn’t look really attractive and/or practical, like for example bash:/ or sh:/ which is really annoying. To solve this, you need to use the PS1 environment variable and append to it what you need: Go to … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Getting VMWare Workstation 12 Pro to work on Ubuntu Wily (15.10)

Just add this line to the  “/usr/bin/vmware” file: export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH immediately after the “export PRODUCT_NAME bla bla bla” line. That’s it! Enjoy! Source: http://askubuntu.com/questions/689123/vmware-wont-work-after-ubuntu-upgrade

Posted in Ubuntu | Tagged , , , , , , | Leave a comment

How to debug your bash script

Simply supply the -x parameter, e.g. bash -x myscript.sh

Posted in Uncategorized | Tagged , , , | Leave a comment

Mount NTFS manually on Ubuntu Linux Server

First, list all the ntfs drives you have: “fdisk -l | grep NTFS”, example output: /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 409599999 204696576 7 HPFS/NTFS/exFAT /dev/sda3 409600000 976957421 283678711 7 HPFS/NTFS/exFA Second, create a folder to mount … Continue reading

Posted in Linux | Tagged , , , , , , , , , | Leave a comment

Alternative way to find files with specific extension in a folder on Linux

If you don’t like the “find” command, you can use the following one instead (I prefer it myself): ls -R | grep “\.xml” where “-R” lists all recursively grep is used to filter filename “\.xml” you must put the “\” … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment

Disable Touchpad Clicks on Xubuntu

If you’re getting really annoyed – like I do – whenever you’re typing something and you touch the touchpad by mistake, which transfer the cursor to some other window on the screen, then this article is what you’re looking for: … Continue reading

Posted in Ubuntu | Tagged , , , , , | Leave a comment