Comandos Basicos Linux /Fedora

Esses comandos vao ajudar a dar continuidade para DevOps .

Aqui sera escrito os mais basicos dos comandos que serão uteis !


mostrando seu sistema  Linux

[root@dsouza ~]# uname -a
Linux fugazi.com 4.15.14-300.fc27.x86_64 #1 SMP Thu Mar 29 16:13:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Display Kernel Release Information

[root@dsouza ~]# uname -r 
4.15.14-300.fc27.x86_64 

Shows how long system has been running plus system load

[root@dsouza ~]# uptime
 01:12:46 up 9:01, 1 user, load average: 0.18, 0.56, 0.56 

Shows system hostname

[root@dsouza ~]# hostname
 fugazi.com 

Display IP address of host

[root@dsouza ~]# hostname -i 
fe80::f816:3eff:fee7:bf9b%eth0 184.168.221.104 

Shows system reboot history

[root@dsouza ~]# last reboot
reboot system boot 4.15.14-300.fc27 Mon Apr 9 13:11 still running
reboot system boot 4.15.14-300.fc27 Fri Apr 6 19:20 - 03:29 (08:09)
reboot system boot 4.15.14-300.fc27 Tue Apr 3 20:24 - 02:04 (05:40)
reboot system boot 4.15.14-300.fc27 Mon Apr 2 20:35 - 02:44 (06:09)
reboot system boot 4.15.14-300.fc27 Mon Apr 2 19:18 - 02:44 (07:25)
reboot system boot 4.15.13-300.fc27 Sun Apr 1 22:16 - 02:48 (04:31)
reboot system boot 4.15.13-300.fc27 Sat Mar 31 23:54 - 04:31 (04:37) 

Shows current date and time

[root@dsouza ~]# date 
Sun Jun 7 09:37:40 IST 2015 

Shows current date and time in UTC

[root@dsouza ~]# date --utc 
Tue Apr 10 04:05:10 UTC 2018

Shows calendar of the month

[root@dsouza ~]# cal 
   April 2018 
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14 
15 16 17 18 19 20 21 
22 23 24 25 26 27 28 
29 30 

Display who is logged in

[root@dsouza ~]# w
 01:06:25 up 8:54, 1 user, load average: 0.24, 0.51, 0.50
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
dsouza tty2 16:12 8:54m 52:23 0.26s /opt/firefox/firefox/firefox --typ

Display who you are logged in as

[root@dsouza ~]# whoami
root

 

One thought on “Comandos Basicos Linux /Fedora

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s