Saturday 14 December 2019

Top 11 Linux commands for Automation Tester/SDET interview?



  • ls: used for listing of files
                ls -al; gives detailed information of the files

                ls -a:Listing Hidden Files
  • cat: creating and viewing of files
                cat > filename : create new file

                cat filename: to view file

                cat fileone finetwo > filecombined : combine two files into one
  • rm: to delete files
                rm filename
  • mv: to move files
                mv file location   (location is the path where you want to move the file)
  • chmod: To change permission
               chmod 777 filename (777 is the permission code)

               chown: change ownership of file

               chown owner:groupowner filename
  • grep:To search pattern
              search test in all text files then grep command will be:

             grep test *.txt
  • tail: to display last lines of files
             tail -n 5 test.txt : it will display last 5 lines of test.txt file
  • ssh: to connect to remote linux machines
              ssh user@IP

             for example the command will look like; ssh sidharth@192.168.x.x

  • traceroute:
               tracks the route that a particular packet of information takes to reach to the host
               traceroute www.automationreinvented.blogspot.com
  • ftp and sftp:
               to connect to remote server and download files

               $ ftp IP/hostname

               ftp> mget *.txt

  • ps: to check process

               ps -ef: current running process

              we can choose more or less with below
              ps -ef | less or more
  •  dstat – view processes, memory, paging, I/O, CPU, etc., in real-time. All-in-one for vmstat, iostat, netstat, and ifstat.
  • iotop – interactive I/O viewer. Get an overview of storage r/w activity.
  • rsync – remote file transfers and syncing. 
 

*************************************************

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

 
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions

4 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. I respect this blog to percentage statistics about this vital difficulty matter. right right here i discovered one of a kind segments and now i am going to use those new guidelines with new enthusiasm. Distribution panels

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. thanks for sharing this useful thing

    ReplyDelete

All Time Popular Posts

Most Featured Post

Introduction to Web Testing with Playwright

  Introduction to Web Testing with Playwright 📌  Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl 📌  YouTube channel:  https://lnkd.in/gGUG...