Linked Questions

14 votes
4 answers
21k views

Context for the question: According to POSIX specs, ARG_MAX is maximum length of command-line arguments to exec() family of functions. Which lead me to believe that's actual number of arguments, ...
Sergiy Kolodyazhnyy's user avatar
1 vote
1 answer
12k views

One of my friends wanted to have more logs in the /var/log/ directory, and after some time of using the system, he tried to access the folder and list it, but instead he got the following error: bash:...
Mikhail Morfikov's user avatar
-1 votes
1 answer
518 views

I looked briefly at the source code of xargs in findutils 4.6.0 and saw that 'n' defines: args_per_exec But there seems to be no default value for args_per_exec in find utils So where is the 'system-...
gawain's user avatar
  • 21
1 vote
0 answers
43 views

Is there any limit of arguments that could be passed to C/C++, Python, Bash etc. program? Practical usage: pass bitmap data from/to C++ to/from Python program via arguments.
linuser's user avatar
  • 126
29 votes
6 answers
17k views

I have about 15,000 files that are named file_1.pdb, file_2.pdb, etc. I can cat about a few thousand of these in order by doing: cat file_{1..2000}.pdb >> file_all.pdb However, if I do this for ...
sodiumnitrate's user avatar
11 votes
2 answers
30k views

Consider that there are countless number of files under /src/ cp /src/* /dst/ How many files cp will successfully process?
Mike's user avatar
  • 113
17 votes
3 answers
6k views

Is there a difference between the sequences {1,2,3} and {1..3}? For example if I have some files file.1 file.2 file.3 and I want to cat them together is it safe to use cat file.{1..3} > file? ...
syss's user avatar
  • 701
20 votes
2 answers
7k views

Is there a maximum to bash file name expansion (globbing) and if so, what is it? See globbing on tldp.org. Let's say I want to run a command against a subset of files: grep -e bar foo* rm -f bar* Is ...
Thomas BDX's user avatar
5 votes
1 answer
4k views

I'm trying to enter a command with VERY big argument (1 MB in size), but it says "Argument list too long." How can I enter that argument? OS: Linux Ubuntu
MCCCS's user avatar
  • 153
3 votes
4 answers
6k views

I need to use find and mv together requirement : Need to find all file *.xml but exclude deposit.xml and move it to another folder ( fairly simple) My attempt : mv `find ./*.xml '!' -type d | ...
Peck's user avatar
  • 125
5 votes
1 answer
4k views

I've been seeing a strange behavior when messing up with the environment variables. I'm setting up a very long environment variable and this prevent launching any command: ( Ubuntu 14.04.5 LTS (GNU/...
nobe4's user avatar
  • 409
2 votes
1 answer
5k views

I have the below call to db2 database command line tool inside a loop, which runs 100k iterations. (the output from db2 is 5 rows of 20 chars approx per each call, total of approx 100k calls. The ...
dbza's user avatar
  • 155
4 votes
3 answers
3k views

I have a folder called simulations, which contains 101 subfolders. These sub-folders are named posterior_predictive_sim_1 to posterior_predictive_sim_101. Each subfolder contains five files: seq.nex, ...
Namenlos's user avatar
  • 141
3 votes
4 answers
2k views

I am looking for effective and simple ID generation for the following content using bash script: {"name": "John", "surname": "Gates", "country": "Germany", "age": "20", "height": "180"} {"name": "...
Anna's user avatar
  • 53
2 votes
1 answer
4k views

I have a file on disk which contains some text I want to display on the screen. You can do it like this: dialog --yesno "`cat FILE`" 10 100 However, I'm concerned that if FILE becomes large, I'm ...
MathematicalOrchid's user avatar

15 30 50 per page