Update linux.md (#1681)

New command for newbies
This commit is contained in:
Adrian A 2021-08-04 14:55:16 +02:00 committed by GitHub
parent b3c91e197a
commit e0379d3cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions

View File

@ -2,6 +2,49 @@
title: Linux
---
### Read/Write/Execute a file
$ chmod +rwx App
$ ./App
### Remove
$ rm namefile
$ rm -d Directory
$ rm -rf Directory_with_files
### Copy file to a folder
$ cp namefile Downloads
$ ls
namefile Desktop Documents Downloads Music Pictures Public Templates Videos
$ cd Downloads
~/Downloads$ ls
namefile
### Create empty file
$ touch namefile
$ touch --help
### Show in the terminal the file
$ cat namefile
$ cat --help
### Create new directory
$ mkdir name
$ mkdir --help
### list files from directory
$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
$ ls --help
### Mounting a RAM drive
$ mount -t tmpfs -o size=5G,nr_inodes=5k,mode=700 tmpfs /tmp