Skip to main content

Posts

Linux ldconfig Command Examples

What is ldconfig? ldconfig is used to create, udpate and remove symbolic links for the current shared libraries based on the lib directories present in the /etc/ld.so.conf 3 ldconfig Examples 1. Display current libraries from the cache This displays the list of directories and the libraries that are stored in the current cache. In the following example, it indicates that there are 916 libraries found in the cache file /etc/ld.so.cache, and it lists all of them below. # ldconfig -p | head -5 916 libs found in cache `/etc/ld.so.cache' libzephyr.so.4 (libc6) => /usr/lib/libzephyr.so.4 libzbar.so.0 (libc6) => /usr/lib/libzbar.so.0 libz.so.1 (libc6) => /lib/libz.so.1 libz.so (libc6) => /usr/lib/libz.so 2. Display libraries from every directory Scans all the directories, and prints the directory name, and all the links that are created under it. # ldconfig -v | head /usr/lib/mesa: libGL.so.1 -> libGL.so.1.2 /usr/lib/i686-linux-gnu: liblouis.so.2 ->...

Linux ldconfig Command Examples

What is ldconfig? ldconfig is used to create, udpate and remove symbolic links for the current shared libraries based on the lib directories present in the /etc/ld.so.conf 3 ldconfig Examples 1. Display current libraries from the cache This displays the list of directories and the libraries that are stored in the current cache. In the following example, it indicates that there are 916 libraries found in the cache file /etc/ld.so.cache, and it lists all of them below. # ldconfig -p | head -5 916 libs found in cache `/etc/ld.so.cache' libzephyr.so.4 (libc6) => /usr/lib/libzephyr.so.4 libzbar.so.0 (libc6) => /usr/lib/libzbar.so.0 libz.so.1 (libc6) => /lib/libz.so.1 libz.so (libc6) => /usr/lib/libz.so 2. Display libraries from every directory Scans all the directories, and prints the directory name, and all the links that are created under it. # ldconfig -v | head /usr/lib/mesa: libGL.so.1 -> libGL.so.1.2 /usr/lib/i686-linux-gnu: liblouis.so.2 -> liblouis.so.2.2...

An Easy Way to Hide Files and Directories in Linux

Do you occasionally share your Linux desktop machine with family members, friends or perhaps with colleagues at your workplace, then you have a reason to hide certain private files as well as folders or directories. The question is how can you do this? In this tutorial, we will explain an easy and effective way to hide files and directories and view hidden files/directories in Linux from the terminal and GUI. As we’ll see below, hiding files and directories in Linux is so simple. How to Hide Files and Directories in Linux To hide a file or directory from the terminal, simply append a dot  .  at the start of its name as follows using the  mv command . $ ls $ mv mv sync.ffs_db .sync.ffs_db $ ls Hide File in Linux Terminal Using GUI method, the same idea applies here, just rename the file by adding a  .  at the start of its name as shown below. Hide File in Linux Using File Manager Once you have renamed it, the file will still be seen, move...

An Easy Way to Hide Files and Directories in Linux

Do you occasionally share your Linux desktop machine with family members, friends or perhaps with colleagues at your workplace, then you have a reason to hide certain private files as well as folders or directories. The question is how can you do this? In this tutorial, we will explain an easy and effective way to hide files and directories and view hidden files/directories in Linux from the terminal and GUI. As we’ll see below, hiding files and directories in Linux is so simple. How to Hide Files and Directories in Linux To hide a file or directory from the terminal, simply append a dot . at the start of its name as follows using the mv command . $ ls $ mv mv sync.ffs_db .sync.ffs_db $ ls Using GUI method, the same idea applies here, just rename the file by adding a . at the start of its name as shown below. Once you have renamed it, the file will still be seen, move out of the directory and open it again, it will be hidden thereafter. How to View Hide Files and Directories in Linux...

pyDash – A Web Based Linux Performance Monitoring Tool

pydash  is a lightweight  web-based monitoring tool for Linux  written in  Python  and  Django  plus  Chart.js . It has been tested and can run on the following mainstream Linux distributions: CentOS, Fedora, Ubuntu, Debian, Arch Linux, Raspbian as well as Pidora. You can use it to keep an eye on your Linux PC/server resources such as CPUs, RAM, network stats, processes including online users and more. The dashboard is developed entirely using Python libraries provided in the main Python distribution, therefore it has a few dependencies; you don’t need to install many packages or libraries to run it. In this article, we will show you how to install  pyda sh to monitor Linux server performance. How to Install pyDash in Linux System 1.  First install required packages:  git  and  Python pip  as follows: -------------- On Debian/Ubuntu -------------- $ sudo apt-get install git python-pip -------------- On Ce...

pyDash – A Web Based Linux Performance Monitoring Tool

pydash is a lightweight web-based monitoring tool for Linux written in Python and Django plus Chart.js . It has been tested and can run on the following mainstream Linux distributions: CentOS, Fedora, Ubuntu, Debian, Arch Linux, Raspbian as well as Pidora. You can use it to keep an eye on your Linux PC/server resources such as CPUs, RAM, network stats, processes including online users and more. The dashboard is developed entirely using Python libraries provided in the main Python distribution, therefore it has a few dependencies; you don’t need to install many packages or libraries to run it. In this article, we will show you how to install pyda sh to monitor Linux server performance. How to Install pyDash in Linux System 1. First install required packages: git and Python pip as follows: -------------- On Debian/Ubuntu -------------- $ sudo apt-get install git python-pip -------------- On CentOS/RHEL -------------- # yum install epel-release # yum install git python-pip ------...

fswatch – Monitors Files and Directory Changes or Modifications in Linux

fswatch  is a cross-platform, file change monitor that gets notification alerts when the contents of the specified files or directories are altered or modified. It executes four types of monitors on different operating systems such as: A monitor build on the File System Events API of Apple OS X. A monitor based on  kqueue , a notification interface present in FreeBSD 4.1 also supported on many *BSD systems, OS X inclusive. A monitor based on File Events Notification API of the Solaris kernel plus its spin-offs. A monitor based on inotify, a kernel subsystem that shows file system modifications to apps. A monitor based on ReadDirectoryChangesW, a Windows API that records alters to a directory. A monitor that regularly check that status of file system, keeps file modification times in memory, and manually determine file system changes (which works anywhere, where stat can be used). Features of fswatch Supports several OS-specific APIs Allows recursive directory ...

fswatch – Monitors Files and Directory Changes or Modifications in Linux

fswatch is a cross-platform, file change monitor that gets notification alerts when the contents of the specified files or directories are altered or modified. It executes four types of monitors on different operating systems such as: A monitor build on the File System Events API of Apple OS X. A monitor based on kqueue , a notification interface present in FreeBSD 4.1 also supported on many *BSD systems, OS X inclusive. A monitor based on File Events Notification API of the Solaris kernel plus its spin-offs. A monitor based on inotify, a kernel subsystem that shows file system modifications to apps. A monitor based on ReadDirectoryChangesW, a Windows API that records alters to a directory. A monitor that regularly check that status of file system, keeps file modification times in memory, and manually determine file system changes (which works anywhere, where stat can be used). Features of fswatch Supports several OS-specific APIs Allows recursive directory monitoring ...

Pyinotify – Monitor Filesystem Changes in Real-Time in Linux

Pyinotify  is a simple yet useful Python module for monitoring filesystems changes in real-time in Linux. As a System administrator, you can use it to monitor changes happening to a directory of interest such as web directory or application data storage directory and beyond. It depends on  inotify  (a Linux kernel feature incorporated in kernel 2.6.13), which is an event-driven notifier, its notifications are exported from kernel space to user space via three system calls. The purpose of  pyinotify  is to bind the three system calls, and support an implementation on top of them providing a common and abstract means to manipulate those functionalities. In this article, we will show you how to install and use pyinotify in Linux to monitor filesystem changes or modifications in real-time. Dependencies In order to use  pyinotify , your system must be running: Linux kernel 2.6.13 or higher Python 2.4 or higher How to Install Pyino...

Pyinotify – Monitor Filesystem Changes in Real-Time in Linux

Pyinotify is a simple yet useful Python module for monitoring filesystems changes in real-time in Linux. As a System administrator, you can use it to monitor changes happening to a directory of interest such as web directory or application data storage directory and beyond. It depends on inotify (a Linux kernel feature incorporated in kernel 2.6.13), which is an event-driven notifier, its notifications are exported from kernel space to user space via three system calls. The purpose of pyinotify is to bind the three system calls, and support an implementation on top of them providing a common and abstract means to manipulate those functionalities. In this article, we will show you how to install and use pyinotify in Linux to monitor filesystem changes or modifications in real-time. Dependencies In order to use pyinotify , your system must be running: Linux kernel 2.6.13 or higher Python 2.4 or higher How to Install Pyinotify in Linux First start by checking the kernel and Python ...