Tab, History and Clear

Linux lab Beginner 4 tasks 10 points

Time to practise the shortcuts that make the terminal fast. There's a folder in your home with a very long name. Don't type it all: let Tab do the work.

How it works: the terminal below is a real Linux machine running in your browser. Click it and type. Tasks tick themselves off as you complete them; questions are answered in the box under each task. Press Reset any time for a fresh machine. Your password on this machine (for sudo) is student.

student@vulntech:~ Starting…
Getting your Linux machine ready…
The first start downloads about 20 MB. After that your browser keeps it, and labs start in a moment.

Hints

Press ↑ to bring back an earlier command instead of typing it again.

Solution explanation

Typing cd this and pressing Tab completes the whole folder name. ls shows the file the_secret_number_is_4096.txt. history lists your commands, and clear (or Ctrl+L) clears the screen.

Show solution
cd this_folder_has_a_really_long_name_so_use_tab_completion
ls
history
clear
HOME LEARN COMMUNITY DASHBOARD