Linux Commands Basic Commands



Yüklə 373,07 Kb.
səhifə11/11
tarix02.01.2022
ölçüsü373,07 Kb.
#35183
1   2   3   4   5   6   7   8   9   10   11
Linux Commands

12. hostname — Use hostname to know your name in your host or network. Basically, it displays your hostname and IP address. Just typing “hostname” gives the output. Typing in “hostname -I” gives you your IP address in your network.



13. ping — Use ping to check your connection to a server. Wikipedia says, "Ping is a computer network administration software utility used to test the reachability of a host on an Internet Protocol (IP) network". Simply, when you type in, for example, “ping google.com”, it checks if it can connect to the server and come back. It measures this round-trip time and gives you the details about it. The use of this command for simple users like us is to check your internet connection. If it pings the Google server (in this case), you can confirm that your internet connection is active!



Tips and Tricks for Using Linux Command Line



  • You can use the clear command to clear the terminal if it gets filled up with too many commands.

  • TAB can be used to fill up in terminal. For example, You just need to type “cd Doc” and then TAB and the terminal fills the rest up and makes it “cd Documents”.

  • Ctrl+C can be used to stop any command in terminal safely. If it doesn't stop with that, then Ctrl+Z can be used to force stop it.

  • You can exit from the terminal by using the exit command.

  • You can power off or reboot the computer by using the command sudo halt and sudo reboot.

Yüklə 373,07 Kb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   10   11




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin