echo ‘One line content here’ | sudo tee /etc/apache2/filename.txt You can use echo “One line content here’ > filename.txt if the folder is not... The easiest way is to install XCode Command Line tools and then install ruby 2 via rvm then install rails 4 via gem. Install...