Sitemap

Linux Basic Command

4 min readAug 31, 2022

--

Here we continue from the ubuntu installation in the previous article

  1. login
  • first, go on login. fill in username and password.
  • then when the command sudo su, to enter root.
Press enter or click to view image in full size
  • check connection with ping google.com or ping 8.8.8.8
Press enter or click to view image in full size
  • Check IP Address by command ifconfig or ip a
Press enter or click to view image in full size
  • Here I will make 2 folder. folderaida and folderfitri.
  • check folder with command ls.

2. folderaida

  • open folderaida with cd folderaida.
  • Create a file in folderaida with the command touch file1.txt
  • Then edit the file by entering the command nano file1.txt
  • This is the contents of file1.txt, then save with ctrl x >Y>Enter
Press enter or click to view image in full size
  • then check file1.txt with cat file1.txt
Press enter or click to view image in full size
  • after that exit folderaida with the command cd ..

3. folderfitri

  • go to folderaida with the command cd folderfitri.
  • then create file2.txt with command touch file2.txt
  • then edit file2.txt with the command nano file2.txt.
  • this is the contents of file2.txt

Get aidanurul_’s stories in your inbox

Join Medium for free to get updates from this writer.

Press enter or click to view image in full size
  • then check file2.txt with cat file2.txt.
Press enter or click to view image in full size
  • exit the fitri folder with the command cd ..

4. Delete files in folderaida

  • open folderaida first
  • then type command rm file1.txt

5. move file1.txt(folderida) to folderfitri

  • Open folderaida then type command mv file1.txt /home/aida/folderfitri/
  • then check in the fitri folder with the command ls

6. create folder3

7. move the edited file to folder3

mv file1.txt aida-file3.txt

8. Change the hostname to aida_idn

Press enter or click to view image in full size

9. Create 2 new users

sudo adduser ida
sudo adduser aii

9. Create 2 new groups

sudo addgroup (nama grup)
sudo addgroup (nama grup)

10. Adding user 1 to group 2

11. History

Press enter or click to view image in full size

12. Date

--

--