# Working with Files

* mkdir&#x20;
* cat
* cp: copy
* mv: move
* rm: remove
  * ![](https://2261732776-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIsekTleP35yLxSNHMm%2Fsync%2F6a16868ac675652e0cf648b475f61e4f001076de.png?generation=1601899826612098\&alt=media)
* rf : dangerous but used

**Want to write in a file, can choose any one between vim, nano and Emacs editors**

* vim: [cheatsheet](https://vim.rtorr.com/)   &#x20;

**Search**

* grep
* find

![](https://2261732776-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIsekTleP35yLxSNHMm%2Fsync%2Fa9cf790365e62e3f80304ebd941e263150561a6f.png?generation=1601899828650274\&alt=media)![](https://2261732776-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIsekTleP35yLxSNHMm%2Fsync%2Fc43b3fbaabd5c5b2293d99c3297d1f4d529b5f7b.png?generation=1601899830511885\&alt=media)

Examples:![](https://2261732776-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIsekTleP35yLxSNHMm%2Fsync%2F296cb6162cdb5d556a43c1eea523f8db7f896a31.png?generation=1601899827373657\&alt=media)

![](https://2261732776-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIsekTleP35yLxSNHMm%2Fsync%2F7944d4b8d4ddcdfdce770638bff8b30b0a4e7a62.png?generation=1601899829582284\&alt=media)

**Exercise:**

Find the file which contains XXXX string in entire your machine (replace XXXX with specific string which you know that it exists in any of your file)
