LINUXOPOLIS # 2019-11-16 ~ PROMPT

25일 전

HOWTO

Building a Linux Habitat
Published with SteemPeak
home

ScreenshotScreenshot by Willi Glenz

SUMMARY

01 building a container ................................................ 2019-11
02 config the prompt ................................................... 2019-11 new 



#02

02 CONFIG THE PROMPT
BASH

$ PROMPT_SIC=$PS1                                        //          
$ PS1="\j \u@\h $ "                                      //         running jobs
$ PS1=$PROMPT_SIC                                        //           
$ vim ~/.bashrc                                          //            permanent

FISH

>>> fish_config prompt                                   //    git-status & jobs
>>> vim ~/config/fish/functions/fish_prompt.fish         //      edit the prompt
$ man bash                                               // search for prompting
>>> fish_config prompt   
ps1-prompt generator    : ezprompt.net


01 BUILDING A CONTAINER
$ clear; 
$ mkdir -p ~/tmp/mnt; 
$ tree ~/tmp
$ cd ~/tmp

$ dd if=/dev/zero of=~/tmp/data.img bs=1M count=1000
# mkfs -t ext4 ~/tmp/data.img
$ mount -t auto -o loop ~/tmp/data.img ~/tmp/mnt/
# chown -R user:user ~/tmp/mnt
$ mount | column -t
$ df -hT

$ cd ~/tmp/mnt/
$ touch dummy.txt
$ cd ~
$ umount ~/tmp/mnt
$ man dd mkfs mount
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT