<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.excyle.nl/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.excyle.nl/feed.php">
        <title>eXcyle Wiki - linux:bash</title>
        <description></description>
        <link>https://wiki.excyle.nl/</link>
        <image rdf:resource="https://wiki.excyle.nl/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-06-25T12:21:50+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.excyle.nl/linux/bash/alles_verwijderen_behalve_nieuwste_x?rev=1367619189&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.excyle.nl/linux/bash/apache2_log_mappen_aanmaken?rev=1367619188&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.excyle.nl/linux/bash/argument_list_too_long?rev=1367619188&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.excyle.nl/linux/bash/raid_array_aanmaken?rev=1367619188&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.excyle.nl/linux/bash/ssd_partition_alignment?rev=1367619188&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.excyle.nl/linux/bash/zoeken_in_bestanden?rev=1367619189&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.excyle.nl/_media/wiki/dokuwiki.svg">
        <title>eXcyle Wiki</title>
        <link>https://wiki.excyle.nl/</link>
        <url>https://wiki.excyle.nl/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://wiki.excyle.nl/linux/bash/alles_verwijderen_behalve_nieuwste_x?rev=1367619189&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-03T22:13:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>alles_verwijderen_behalve_nieuwste_x</title>
        <link>https://wiki.excyle.nl/linux/bash/alles_verwijderen_behalve_nieuwste_x?rev=1367619189&amp;do=diff</link>
        <description>Verwijder alle bestanden behalve de nieuwste zoveel

ls -ratd /map/om/te/doorzoeken/* | head -n -5 | xargs rm</description>
    </item>
    <item rdf:about="https://wiki.excyle.nl/linux/bash/apache2_log_mappen_aanmaken?rev=1367619188&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-03T22:13:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>apache2_log_mappen_aanmaken</title>
        <link>https://wiki.excyle.nl/linux/bash/apache2_log_mappen_aanmaken?rev=1367619188&amp;do=diff</link>
        <description>Apache 2 log mappen aanmaken

met dit commando kan je in 1 klap ale apache 2 log mappen aanmaken


cat excyle.nl.conf |grep Log |awk '{print $2}' | sed 's/error.log//g'| sed 's/access.log//g' |sed 's/httpd/apache2/g' |sort -u |xargs mkdir -p


en met deze ook alle bestanden er in</description>
    </item>
    <item rdf:about="https://wiki.excyle.nl/linux/bash/argument_list_too_long?rev=1367619188&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-03T22:13:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>argument_list_too_long</title>
        <link>https://wiki.excyle.nl/linux/bash/argument_list_too_long?rev=1367619188&amp;do=diff</link>
        <description>Argument list too long

Bij de melding 


-bash: /usr/bin/rm: Argument list too long


kan je met het volgende script alles alsnog verwijderen


find . | xargs rm</description>
    </item>
    <item rdf:about="https://wiki.excyle.nl/linux/bash/raid_array_aanmaken?rev=1367619188&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-03T22:13:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>raid_array_aanmaken</title>
        <link>https://wiki.excyle.nl/linux/bash/raid_array_aanmaken?rev=1367619188&amp;do=diff</link>
        <description>aanmaken van een md0 raid array met 4 schijven als raid 5


mdadm -Cv /dev/md0 -l5 -n4 -x0 -f --assume-clean /dev/sd[abcd]1
mdadm --detail --scan &gt;&gt; /etc/mdadm/mdadm.conf</description>
    </item>
    <item rdf:about="https://wiki.excyle.nl/linux/bash/ssd_partition_alignment?rev=1367619188&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-03T22:13:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ssd_partition_alignment</title>
        <link>https://wiki.excyle.nl/linux/bash/ssd_partition_alignment?rev=1367619188&amp;do=diff</link>
        <description>Source

Partition Alignment

Voor het gemak gaan we er even vanuit dat /dev/sda je SSD is

met het volgende commando gebruiken we 32 secotrs en 32 blocks, wat uit komt op 512kb brokken


fdisk -H 32 -S 32 /dev/sda


vervolgens kunnen we met:

	*  o een nieuwe partitietabel aanmaken,</description>
    </item>
    <item rdf:about="https://wiki.excyle.nl/linux/bash/zoeken_in_bestanden?rev=1367619189&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-03T22:13:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>zoeken_in_bestanden</title>
        <link>https://wiki.excyle.nl/linux/bash/zoeken_in_bestanden?rev=1367619189&amp;do=diff</link>
        <description>Zoeken in bestanden

Alles
find . | xargs grep 'zoekstring' -sl 
Filetype
find . -iname '*php' | xargs grep 'zoekstring' -sl 
vandaag aangepast
find . -iname '*php' -mtime -1 | xargs grep 'zoekstring' -sl 
niet vandaag aangepast
find . -iname '*php' -mtime +1 | xargs grep 'zoekstring' -sl</description>
    </item>
</rdf:RDF>
