How would I create a file in SSH with code already in it?
Something along the lines of touch filename.php >> echo “thecode here”
??
Also, any SSH tips? Looking to become more efficient.
You know, work smarter not harder.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Will result in a file named myfile.txt with “some text” in it.
If you already have a file on your local machine that you’re trying to move to the remote machine, you could use scp.