SDET- QA Automation Techie

Full Stack QA Automation Testing Blog

  • Home
  • Training
    • Online
    • Self-Paced
  • Video Tutorials
  • Interview Skills
    • HR Interview Questions Videos
    • Domain Knowledge
  • Career Guidance
  • Home
  • Software Testing
    • Manual Testing Tutorials
    • Manual Testing Project
    • Manaul Testing FAQS
    • ISTQB
    • AGILE
  • Web Automation Testing
    • Java Programmng
    • Python Programmng
    • Selenium with Java
    • Selenium with Python
    • Robot Framework(Selenium with Python)
    • selenium with Cucumber
    • TestNG+IntelliJ
    • Mobile App Testing(Appium)
    • JMeter
  • API Automation Testing
    • Rest Assured API Testing (BDD)
    • Rest Assured API Testing (Java+ TestNG)
    • Robot Framework(Rest API Testing with Python)
    • Postman
    • SoapUI
    • API Testing(FAQ's)
  • SDET|DevOps
    • Continuos Integration
    • SDET Essentials
    • AWS For Testers
    • Docker
  • SQL
    • Oracle(SQL)
    • MySQL for Testers
    • NoSQL
  • Unix/Linux
    • UNIX TUTORIALS
    • Linux Shell Scripting
  • ETL Testing
    • ETL Data warehouse Tutorial
    • ETL Concepts Tools and Templates
    • ETL Testing FAQ's
    • ETL Testing Videos
  • Big Data Hadoop
  • Video Tutorials
  • ApachePOI Video Tutorials
  • Downloads
    • E-Books for Professionals
    • Resumes
  • Automation Essencials
    • Cloud Technologies
      • Docker For Testers
      • AWS For Testers
      • Sub Child Category 3
    • Java Collections
    • Selenium Locators
    • Frequently Asked Java Programs
    • Frequently Asked Python Programs
    • Protractor
    • Cypress Web Automation

Unix File Commands

 Linux, Shell Scripting, Unix, VI Editor   


1) cat


2) cp


3) mv


4) rm


cat command: cat command is used for various purposes.


1) Creating the new file


2) Display content of the file


3) Concatinating more than one file


4) Appending data to the existing file


5) Copying many files in to one single file.


syntax:


$cat [Filename]


* File name should be upto 255 characters.


Ex:


1) Creating the new file:


$cat >paypal.txt


--------


--------


--------


ctrl+d


2) Dispay data in the file:



$cat < paypal.txt


or


$cat paypal.txt


* both are same


3) Concatenation of files:


$cat paypal.txt google.txt


* this command displays all the data in two files which are paypal.txt&


google.txt


4) Copying data from many file to single file:


$cat paypal.txt google.txt >amazon.txt


ls : Used for listing /display all the files in the curreny directory.


cp command: This command used for


1) copy contents from a file to another file(source->destination)


2)copy files from one directory to another directory.


syntax:


$ cp


Example:


$ cp paypal.txt google.txt


mv command:


1) Used for renaming a file(changing name of the file)


2) Renaming a directory


3) Moves files from one directory to another directory


Example:


$mv paypal.txt funpal.txt --> renaming a file


$mv chennai hyd --> renaming a directory


$mv google.txt hyd -->here the file google moves to hyd directory


** Note: If we use cp command duplicate files will be crated


If we use mv command file will be moved to target location(no duplicates)


rm command: used for delete/removing a file/directory.


example:


$ rm google.txt --> it delets file directly without confirmation


$ rm -i google.txt -->deletes file with confirmation


$rm -r hyd


* here this commands removes hyd directory eventhou its having sub directories&files.


* But rmdir command removes directory when it should be empty.


* -r is recursive









  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to TwitterShare to Facebook
Newer Post Older Post Home
popup

Popular Posts

  • How To Explain Project In Interview Freshers and Experienced
    “ Describe an important project you’ve worked on ” is one of the most common questions you can expect in an interview. The purpose of a...
  • API/Webservices Testing using RestAssured (Part 1)
    Rest Assured : Is an API designed for automating REST services/Rest API's Pre-Requisites Java Free videos: https://www.you...
  • MANUAL TESTING REAL TIME INTERVIEW QUESTIONS & ANSWERS
    1. How will you receive the project requirements? A. The finalized SRS will be placed in a project repository; we will access it fr...

Facebook Page

Pages

  • Home
  • Resumes
  • Job Websites India/UK/US
  • ISTQB
  • Selenium with Java
  • E-Books for Professionals
  • Manual Testing Tutorials
  • Agile Methodology
  • Manual Testing Projects

Live Traffic

YouTube


Blog Visitors

Copyright © SDET- QA Automation Techie | Powered by Blogger
Design by SDET | Blogger Theme by | Distributed By Gooyaabi Templates