[RUBY] Decompose "$ printf" install: --no-document \ nupdate: --no-document \ n ">> ~ / .gemrc" in Chapter 1 of the Rails Tutorial

background

About this that came out in Chapter 1 of the Rails tutorial

$ printf "install: --no-document \nupdate:  --no-document\n" >> ~/.gemrc

A little disassembled. I'm a beginner in programming, so I'll check what I'm interested in. By the way, this setting speeds up the installation of gems. Convenient ~

printf

Wikipedia says

printf is a function declared in the standard C I / O header (stdio.h).

"install: --no-document \nupdate: --no-document\n"

Specify not to install the document normally.

Every time you install

gem install gem name--no-document

It's annoying to write

~/.gemrc

Add (create) to a file called .gemrc

Supplement

Once upon a time

--no-ri --no-rdoc

Seems to have been used (when did you talk)

reference https://ja.wikipedia.org/wiki/Printf https://www.tmp1024.com/articles/gem-not-install-document

Recommended Posts

Decompose "$ printf" install: --no-document \ nupdate: --no-document \ n ">> ~ / .gemrc" in Chapter 1 of the Rails Tutorial
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
[Ruby on Rails Tutorial] Error in the test in Chapter 3
[Rails Struggle/Rails Tutorial] Summary of Rails Tutorial Chapter 2
The identity of params [: id] in rails
[Ruby on Rails] Rails tutorial Chapter 14 Summary of how to implement the status feed
[Order method] Set the order of data in Rails
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 6
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 3
[Rails tutorial] A memorandum of "Chapter 11 Account Activation"
rails tutorial Chapter 6
rails tutorial Chapter 1
rails tutorial Chapter 7
rails tutorial Chapter 5
rails tutorial Chapter 10
rails tutorial Chapter 9
rails tutorial Chapter 8
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
Install multiple submit buttons in Rails View to get the value of the pressed button
Resolve Gem :: FilePermissionError when running gem install rails (Rails Tutorial Chapter 1)
SSL in the local environment of Docker / Rails / puma
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
Rails Tutorial Chapter 5 Notes
Rails Tutorial Chapter 10 Notes
Rails Tutorial Chapter 3 Notes
Rails Tutorial Chapter 3 Learning
Rails Tutorial Memorandum (Chapter 3, 3.1)
Rails Tutorial Chapter 4 Notes
Rails Tutorial Chapter 4 Learning
Rails Tutorial Chapter 1 Learning
Rails Tutorial Chapter 2 Learning
Rails Tutorial Chapter 8 Notes
Rails Tutorial Memorandum (Chapter 3, 3.3.2)
Install by specifying the version of Django in the Docker environment
[Rails] Where to be careful in the description of validation
I tried to make the "Select File" button of the sample application created in the Rails tutorial cool
[Rails] Get a unique record from the table joined by the join method of Active Record (Rails Tutorial Chapter 14)