Abu Eesa

On a Linux system, if you need to find out all symbolic links in a given directory. Assuming you are in the directory you need to be in it can be done simply by:

ls -la | grep "\->"

If you want to search in a different directory them specify it like this:

ls -la /this/directory | grep "\->"



If you are searching for some library or something else and are not sure where in the Linux system it is located, it can easily be found with a quick command via the Command Line.

For example, the file we are looking for is “libcxcore.so.4”, then this should tell us where it’s located:

sudo find / -name "libcxcore*"

The result should be something like this IF it exists and is found:


Another method which might be faster is:

locate libcxcore

Note: Replace ‘libcxcore’ with whatever you are searching for!



I had setup some Jenkins jobs and as a post-build action used the HTML Publisher Plugin to generate some HTML reports for my jobs.

But the odd thing was the HTML reports were not displaying with the CSS styles. So it was just plain HTML which looked ugly.

A simple fix solved this problem:

Go to “Manage Jenkins” -> “Script console” and run below command:

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")

Re-run your job(s) and the HTML reports now show the CSS styles too.



I recently made a new user called ‘jenkins’ on Ubuntu.

And I tried to switch to a user by sudo su — ubuntu and it gave me the error:

jenkins is not in the sudoers file. This incident will be reported.

To fix this issue we just need to add the jenkins user to the sudoers file.

First get back to the user that has the proper permissions, in my case it was switching back to the user ubuntu, by typing exit until I was where I started.

Then I executed this to add my new jenkins user added to the sudoers file:

echo 'jenkins ALL=(ALL) ALL' >> /etc/sudoers

Now the jenkins has been added to the sudoers file and will be able to switch users and perform other tasks.