3. 2. Challenge
Content concatenation
Evaluate your content concatenation skills by completing the following tasks:
TIP: Use the tab autocompletion shortcut
Once you have completed these tasks press the Check It button to have your solution assessed.
Check It!
ANSWER :
Task1:
Evaluate your content concatenation skills by completing the following tasks:
Append the current userto the ~/workspace/project-log/changelog.txt file:
Current user can be found out using command : whoami
Append the current userto the ~/workspace/project-log/changelog.txt file:
username=`whoami`
echo `username: $username` >> ~/workspace/project-log/changelog.txt
Output:
cat /home/user1/workspace/project-log/changelog.txt
Changelog:
Version: 1.0
username: user1
Task2:
Append the ~/workspace/project-log/file-list.txt file content to the ~/workspace/project-log/changelog.txt file
cat ~/workspace/project-log/file-list.txt >> ~/workspace/project-log/changelog.txt
cat command will display the contents of ~/workspace/project-log/file-list.txt and will redirect or append them to ~/workspace/project-log/changelog.txt file.
NOTE :
echo 'username: codio' >> ~/workspace/project-log/changelog.txt This is how the first should be written in Codio
3. 2. Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: Append...
file content in the CLI Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: workspace/project- 1. Append the current user to the log/changelog.txt file: Changelog: Version: 1.0 username: current_user 2. Append the workspace/project-log/file-list.txt file content to the --/Workspace/project-log/changelog.txt file: Changelog Version: 1.0 username: current_user hello.txt hi.txt project-log TIP: Use the tab autocompletion shartout
Any help would be appreciated. Reading file content in the CLI Collapse 3. 2. Challenge Content concatenation Evaluate your content concatenation skills by completing the following tasks: 1 Append the current user to the -/workspece/project log/change log.txt file Changelog: Version: 1.0 usernene: current user 2 Append the-/workspace/project-log/fale-list.txt file content to the workspace/project-log/chengelog txt le Changelog Version: 1.0 usernane: currenteser hello.txt hi.txt project-leg TIP Use the tab autocompletion shortcut Once you have completed these tasks press the Check it button to...
I need some help< I keep getting this wrong and don’t understand why 2. 5. Challenge Children files Let’s test your file creation skills. Make sure you are on the ~/workspace directory and: 1.Create the following files. Try creating them directly from the ~/workspace directory, all at once: test-website/index.html test-website/.website-config test-website/css/styles.css test-website/img/logo.png test-website/js/scripts.js 2.From your ~/workspace directory, list the test-website/css directory content including hidden files 3.Clear the terminal screen Once you have completed these tasks press the Check It button...