![]() ![]() Lrwxrwxrwx 1 root root 23 Sep 3 18:14 /etc/alternatives/mail -> /usr/bin/mail. Lrwxrwxrwx 1 root root 22 Sep 3 18:14 /usr/bin/mail -> /etc/alternatives/mail $ dpkg-query -S /etc/apache2/mods-available/Īpache2, libapache2-mod-php5, libapache2-mod-python, libapache2-mod-svn: /etc/apache2/mods-availableĭpkg-query can not follow symlink. To list packages which have something in apache mods-available folder $ dpkg-query -S /etc/apache2/nfįind packages using filename wildcard matchĪwstats: /usr/share/doc/awstats/html/awstats_config.htmlĪwstats: /usr/share/doc/awstats/examples/awstats_Īwstats: /usr/share/doc/awstats/examples/nfĪwstats: /usr/share/awstats/icon/mime/conf.pngįind packages having files in a directory Fine packages based filename full or partial match Here are some scenarios you can use dpkg-query (or dpkg) to find package name from file name. Note that it does not follow symlinks when querying. Ubuntu dpkg-query can be used to find package name given a file name, its full path or partial name. Ubuntu - reload iptables rules during boot.Ubuntu - how to find boot autostart status of a service. ![]() Ubuntu - how to auto start services on boot using update-rc.d (sysv init).Ubuntu - find where will a package be installed from.Ubuntu - dpkg and apt-get beginner tutorial.Ubuntu - check if a service is upstart based.Setup svn repository on AWS Ubuntu with apache auth.locate -r Filename If you give it the file name instead of a pattern, it will show files with the exact file name. When the include file is in quotes the preprocessor first searches in the. Then it searches the standard include paths (see the above link, and use the -v flag to test on your system). When the include file is in brackets the preprocessor first searches in paths specified via the -I flag. Linux du - find disk usage of directories or files locate -i Filename Ignore case-sensitive outputs Use regex You can use regular expressions to find files with matching patterns in the name. Where are include files stored - Ubuntu Linux, GCC.Linux - how to remove user from a group.Linux - how to create a large file like 1GB.Linux - how to add a user using useradd.LXC (Linux Containers) - quick start tutorial on Ubuntu.How to setup ssl (https) for your site on Ubuntu Linux.How to install ViewVC for svn repository on Ubuntu Linux.How to check if a user has password on Linux.How to add a user on Linux with sudo access. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |