Posts

Showing posts with the label find

UTF 8 issue find doesnt find all your files

UTF 8 issue find doesnt find all your files Public bug announcement: Beware that GNU find in findutils 4.4.2 (as shipped on Ubuntu Lucid) will not find all your files if its run in the UTF-8 locale: even if the file is there, find may just skip printing its name. Solution: If you have non-ASCII characters in your file names, use LC_CTYPE=C find instead of find . Example: $ echo $LC_CTYPE en_US.UTF-8 $ ls foo* ls: cannot access foo*: No such file or directory $ perl -e die if !open F, ">", "foox80bar" $ ls foo* foo?bar $ find -type f ... ./foo?bar ... $ find -name foo* $ LC_CTYPE=C find -name foo* ./foo?bar Possible explanation: The file name matcher wont match a file if its name cannot be parsed properly in the current locale (LC_CTYPE). That is, since foox80bar is not valid UTF-8, GNU find 4.4.2 will not find it. This strange behavior can be very surprising and possibly dangerous, especially in automated shell scripts. download  file  now

Using Docker to find out what apt get update does!

Using Docker to find out what apt get update does! While I dabble in System Administration, I dont have a deep knowledge how packages are created or maintained. Today, well see how to use Docker to increase my understanding of "apt-get update". I was curious about this command because I read that its good practice to remove the files created during the update process. I started a small container using docker run -i -t debian:wheezy /bin/bash In another window, I found the ID of the running container using "docker ps". Lets pretend that ID starts with "45...". Look for any changed files using docker diff "45" Youll see nothing displayed. Now run "apt-get update" in the wheezy container. Then run the diff command again. You should see the following differences: C /var C /var/lib C /var/lib/apt C /var/lib/apt/lists A /var/lib/apt/lists/http.debian.net_debian_dists_wheezy-updates_Release A /var/lib/apt/lists/http.debian.net_debian...

Vento Aureo Find Polpos Hidden Treasure!

Image
Vento Aureo Find Polpos Hidden Treasure! #NearZero Yo guys, new chapter is out. Not much to say this time other than sorry for the delay. Love you all and Stay JoJoed! Reading Links: batoto Imgur download  file  now

Using ls and find command how to display only directories

Using ls and find command how to display only directories Following commands list only directories in the current directory. 1. #ls -l | grep ^d 2. #ls -d */ 3. #find -type d Ex: #find /tmp -type d Want only files to be listed.. use 1. #ls -l | grep -v ^d 2. #find -type f Ex: #find /tmp -type f download  file  now

Using find to locate files

Using find to locate files The GNU find command is a wonderful utility that can locate files on your Ubuntu system. The find command is part of the GNU findutils and is installed on every Ubuntu system. The following paragraphs explain the basics of find . The man pages show the syntax for using find as: find [-H] [-L] [-P] [path...] [expression] The optional flags [-H] [-L] [-P] are not used commonly. They are useful only if your search want to follow symbolic links. By default find command will not follow symbolic links. The option [ path] refers to the location where your search should start. The option [expression] refers to the way in which find should work. Locating Files by Name This seems to be the most common use of find. Try the following command on a terminal. $ find $HOME -name myfile.mp3 Note that I have quoted the name of the file to be found out. This must be made a habit, other wise you may get strange results ,especially when the file names have embeded spaces...

VIDEO Jacco Gardner Find Yourself

Image
VIDEO Jacco Gardner Find Yourself Really digging the new video for the first single from Jaccos upcoming album, Hypnophobia. It appears his sound has leaped forward a decade, leaving behind the sunny 60s psychedelia of his debut LP for a more hypnotic 70s horror movie soundtrack vibe. Cant wait to hear the rest of the record. Order the 7" or LP over at Polyvinyl Records.  - Dan download  file  now