Thursday 19 May 2016

Linux+ chapter 1 Understanding command line basics UNAME

OK, so my test version of linux is up and running, in reality I'm using kali linux not for the entire project but just because i using my kali box for some other stuff at the time of writing.

First up the uname command.

As you begin using linux regularly you quickly realise linux uses some extremly powerful commands and there are many many ways to achieve a particular objective.

the difficult thing for me initially with linux is remembering what command does what. This is why getting practical practise is critical in retaining the knowledge who have learned; consider the following problems that need solving,

how do you ?
  • print the kernel name
  • print the network node hostname
  • print the kernel release
  • print the kernel version
  • print the machine hardware name
  • print the processor type
  • print the hardware platform
  • print all of the above
well this is what i love about linux all of the above can be done with a single command uname 
while the uname command alone doesn't reveal all of the above you need to use switches, for example.
uname -r prints the kernel release -r been the switch
uname --kernel-release does exactly the same thing --kernel-release is the switch used this time.
to get info on nearly all commands in linux use either the man or info command
  • man uname
  • info uname

if you anticipate doing the linux+ exams you'd certainly will need to start making mental notes of these switches and what they do, to aid us we can create our own custom quiz questions to aid us, but remember everybody learns very differently