# Linux command line cheat sheet


### SSH remote access with UI on a Linux Server

```
ssh -X <username>@<pc>
```
example:

```
ssh -X bob@pc1
```

### Copy from Linux PC to Windows PC


```
pscp.exe <user>@<pc>:/home/<user>/<PathToFile> "C:\Users\<user>\<PathToFile>"
```
example:

```
pscp.exe bob@pc1:/home/bob/Downloads/myfile.txt "C:\Users\bob\Downloads\myfile.txt"
```
To copy from Windows PC to Linux PC, just invert the order of the two file locations in the command line.

### Find files with specific name in PWD and subfolders

```
find ./ -name "file name"
```
example:

```
find ./ -name "myfile.txt"
```
