shell

WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.

I’ve received this error while starting mongo in shell while installing on [code lang=”shell”] [[email protected] ~]# mongod –version db version v3.2.3 git version: b326ba837cf6f49d65c2f85e1b70f6f31ece7937 OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013 allocator: tcmalloc modules: none build environment: distmod: rhel70 distarch: x86_64 target_arch: x86_64 [[email protected] ~]# mongo –version MongoDB shell version: 3.2.3 CentOS Linux release 7.2.1511 …

WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files. Read More »

Show Image Size in Terminal or Shell

The easiest way to show the file size in Terminal in Mac or Linux. [code lang=”bash”] ustins-MacBook-Pro:jpg juzhax$ file 001.jpg 001.jpg: JPEG image data, EXIF standard Justins-MacBook-Pro:jpg juzhax$ identify 001.jpg 001.jpg JPEG 720×468 720×468+0+0 8-bit sRGB 59.8KB 0.000u 0:00.009 Justins-MacBook-Pro:jpg juzhax$ [/code]

command c expects followed by text error in Mac

You received error from the sed command in Mac, because the argument in mac is different. If you type in Mac terminal, you may receive error like this [code lang=”bash”] Justins-MacBook-Pro:2 juzhax$ sed -i ‘s/old_text/new_text/g’ example.txt sed: 1: "config.php": command c expects \ followed by text [/code] The first argument should be the extension of …

command c expects followed by text error in Mac Read More »