From e0379d3cb4299110d2a75a288c4334e297ec7ba7 Mon Sep 17 00:00:00 2001 From: Adrian A Date: Wed, 4 Aug 2021 14:55:16 +0200 Subject: [PATCH] Update linux.md (#1681) New command for newbies --- linux.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/linux.md b/linux.md index 8deecd38c..f38b39849 100644 --- a/linux.md +++ b/linux.md @@ -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