{"id":346,"date":"2008-10-06T10:01:23","date_gmt":"2008-10-06T08:01:23","guid":{"rendered":"http:\/\/www.linuxmint.com\/blog\/?p=346"},"modified":"2008-10-06T12:27:13","modified_gmt":"2008-10-06T10:27:13","slug":"mint-6-3-new-commands","status":"publish","type":"post","link":"https:\/\/blog.linuxmint.com\/?p=346","title":{"rendered":"Mint 6: 3 new commands"},"content":{"rendered":"<p>Three new commands made their way into Romeo last night: search, apt contains and apt content. All three of them are provided by mintSystem 5.5.<\/p>\n<p>If you have Romeo set up as a repository simply type &#8220;apt update&#8221; and &#8220;apt install mintsystem&#8221;. Otherwise you can get the deb from here:<\/p>\n<p><a href=\"http:\/\/packages.linuxmint.com\/pool\/romeo\/m\/mintsystem\/mintsystem_5.5_all.deb\">http:\/\/packages.linuxmint.com\/pool\/romeo\/m\/mintsystem\/mintsystem_5.5_all.deb<\/a><\/p>\n<p><strong>apt content <em>package<\/em><\/strong><\/p>\n<p>&#8220;apt content&#8221; shows the content of package, it&#8217;s a shortcut for &#8220;dpkg -L&#8221;. For instance, if you type &#8220;apt content mintsystem&#8221; you should see the following:<\/p>\n<p><em>clem@mars ~\/Desktop $ apt content mintsystem<br \/>\n\/.<br \/>\n\/usr<br \/>\n\/usr\/local<br \/>\n\/usr\/local\/bin<br \/>\n\/usr\/local\/bin\/apt<br \/>\n\/usr\/lib<br \/>\n\/usr\/lib\/linuxmint<br \/>\n\/usr\/lib\/linuxmint\/mintSystem<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/icon.png<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/python<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/python\/configobj.py<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/templates<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/templates\/apt.conf<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/templates\/preferences<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/GPL.txt<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/version<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/version\/mintInstall<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/version\/mintInstall\/portals.list<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/version\/mintInstall\/release.id<br \/>\n\/usr\/lib\/linuxmint\/mintSystem\/version\/mintInstall\/sources.list<br \/>\n\/usr\/share<br \/>\n\/usr\/share\/doc<br \/>\n\/usr\/share\/doc\/mintsystem<br \/>\n\/usr\/share\/doc\/mintsystem\/copyright<br \/>\n\/usr\/share\/doc\/mintsystem\/changelog.gz<\/em><\/p>\n<p><strong>apt contains <em>filename<\/em><\/strong><\/p>\n<p>&#8220;apt contains&#8221; tells you which package contains a particular file. It&#8217;s a shortcut for &#8220;dpkg -S&#8221;. For instance if you type &#8220;<em>apt contains \/usr\/lib\/linuxmint\/mintSystem\/GPL.txt<\/em>&#8221; you should see the following:<\/p>\n<p><em>clem@mars ~\/Desktop $ apt contains \/usr\/lib\/linuxmint\/mintSystem\/GPL.txt<br \/>\nmintsystem: \/usr\/lib\/linuxmint\/mintSystem\/GPL.txt<\/em><\/p>\n<p><strong>search <em>for keyword in directory<\/em><\/strong><\/p>\n<p>&#8220;search&#8221; lets you search for files containing a particular keyword. You can get a list of options by typing &#8220;search &#8211;help&#8221;:<\/p>\n<p><em>clem@mars ~\/Desktop $ search help<\/em><\/p>\n<p><em>usage: search [arguments] [options]<br \/>\narguments:<br \/>\nfor text<br \/>\nin directory<br \/>\noptions:<br \/>\n-c | &#8211;case-sensitive<br \/>\n-s | &#8211;show-filenames-only<\/em><\/p>\n<p>&#8220;search&#8221; is easy to use. Let&#8217;s take an example and search for &#8220;workgroup&#8221; in \/etc\/samba. We type &#8220;search for workgroup in \/etc\/samba&#8221; and we see the following:<\/p>\n<p><em>clem@mars ~\/Desktop $ search for workgroup in \/etc\/samba<br \/>\n\/etc\/samba\/smb.conf.ucf-old:26:# Change this to the workgroup\/NT-domain name your Samba server will part of<br \/>\n\/etc\/samba\/smb.conf.ucf-old:27:\u00a0\u00a0 workgroup = MSHOME<br \/>\n\/etc\/samba\/smb.conf:26:# Change this to the workgroup\/NT-domain name your Samba server will part of<br \/>\n\/etc\/samba\/smb.conf:27:\u00a0\u00a0 workgroup = MSHOME<\/em><\/p>\n<p>We can refine the search by adding &#8220;&#8211;case-sensitive&#8221; or only show filenames by adding &#8220;&#8211;show-filenames-only&#8221;. For instance:<\/p>\n<p><em>clem@mars ~\/Desktop $ search in \/etc\/samba for workgroup &#8211;case-sensitive &#8211;show-filenames-only<br \/>\n\/etc\/samba\/smb.conf.ucf-old<br \/>\n\/etc\/samba\/smb.conf<\/em><\/p>\n<p>Let us know what you think and if you find any bugs. These will eventually be backported into Elyssa and will be featured as some of Mint 6&#8217;s improvements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Three new commands made their way into Romeo last night: search, apt contains and apt content. All three of them are provided by mintSystem 5.5. If you have Romeo set up as a repository simply type &#8220;apt update&#8221; and &#8220;apt install mintsystem&#8221;. Otherwise you can get the deb from here: http:\/\/packages.linuxmint.com\/pool\/romeo\/m\/mintsystem\/mintsystem_5.5_all.deb apt content package &#8220;apt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-main-topics"],"_links":{"self":[{"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=346"}],"version-history":[{"count":3,"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":348,"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions\/348"}],"wp:attachment":[{"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.linuxmint.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}