Inderpreet Singh

Search
Skip to content
  • About
  • GitHub
  • LinkedIn
  • Project
    • Ailaan Chrome Extension

Monthly Archives: July 2010

Helpful Tips

ls fails with Argument list too long

July 26, 2010 Inder Leave a comment

This problem usually occurs when ls is used with a wildcard, like this:

ls *test* | wc -l

Bash first expands the wildcard expression first, and when that list gets too large, the kernel cannot handle it (a limitation of the kernel). So to fix it, use the find command instead, like this:

find . -name "*test*" | wc -l

linux

Categories

  • Downloads
  • Health
  • Helpful Tips
  • Passion
  • Programming
  • Projects
  • Useless

Engineer

Recent Posts

  • Tax season transactions prep
  • How to release new WordPress plugin version?
  • Brew acting funky after Mac OSX Monterey upgrade
  • Install ShabadOS on Windows 10
  • Raspberry Pi Zero as ShabadOS display

Recent Comments

  • Timothy on Photoshop: Saved Gif Turns Red When Adding Text
  • kc on VirtualBox Images CentOS keyboard settings problem
  • Johnny Hogenbirk on Chrome’s javascript sort array function is different, yet proper
  • Lazar on Profile Visitors 4.1 Mod for SMF 2.0
  • Daan Biesterbos on VirtualBox Images CentOS keyboard settings problem

Tags

  • android
  • apps
  • centos
  • chrome
  • coldfusion
  • cygwin
  • django
  • eclipse
  • filesystem
  • github
  • iphone
  • java
  • javascript
  • kodi
  • linux
  • mac
  • mercurial
  • mysql
  • networking
  • nginx
  • pear
  • photoshop
  • php
  • python
  • raspberry pi
  • security
  • smf
  • software
  • ubuntu
  • virtualenv
  • virtualmin
  • windows
  • wordpress
  • yum

Archives

  • March 2024
  • December 2023
  • June 2022
  • December 2018
  • November 2018
  • September 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2017
  • January 2017
  • December 2016
  • August 2016
  • July 2016
  • October 2015
  • September 2015
  • August 2015
  • February 2015
  • January 2015
  • November 2014
  • September 2013
  • April 2013
  • March 2013
  • November 2012
  • July 2012
  • May 2012
  • January 2012
  • December 2011
  • August 2011
  • June 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • April 2010
  • April 2009
Proudly powered by WordPress