linux
linux
Pada desktop Linux, klik kanan di mana saja dan pilih Buka
Terminal di Sini dari menu konteks untuk membuka jendela
Terminal.
Note: Linux does not require the .txt extension on text files.
Adding .txt is a courtesy to other users on the system.
27. At the prompt, use the cat command to prove that the
contents of happypumpkin.moo are the same as file3.txt.
Note: Again, Linux does not care what file you name or
what file extension you use.
28. At the prompt, type mv happypumpkin.moo
red/file3.txt and press Enter to move and rename the
happypumpkin.moo file. Execute ls -R to confirm.
When you use the cat command to output the file's output
to the terminal, the entire file content gets printed all at
once, which is not always ideal. Linux provides two tools for
reading large files: more and less. The more command is
the original reading tool. The more command allows you to
page through a file, one page at a time. The less command
is a play on words as less is a newer tool, and less allows
you to scroll up and down. In essence, "less" is "more".
Use the space bar to page down, b to page up, the down
arrow to go down one line at a time, and the up arrow to
go up one line at a time. When done moving around in less,
press q to quit less.
Ringkasan
Di lab ini, Anda mempelajari cara menavigasi sistem berkas Linux
dan menemukan berkas serta folder. Anda mempelajari cara
membuat berkas dan direktori serta menambahkan teks ke
berkas. Anda juga mempelajari beberapa penguraian berkas
dasar. Jawab pertanyaan di tab Tugas, lalu lanjutkan ke latihan
tantangan, tempat Anda akan menerapkan keterampilan baru
Anda.