top of page
Search

Shell scripting - Day 174

Writer's picture: Jessica LambJessica Lamb

Updated: Nov 8, 2022

Thursday 13th October 2022


So today to continue on with coding we learnt about shell scripting. So we used a programme called visual studio code. We are using Bash scripting today. So I had to command prompts one was used for the Linux server the other wasn't. So echo $PATH shows the path where as $ env shows the shell. $ alias shows the different alias shortcuts. LL means long list and alf means all long pacification. $ vim .bashrc is to see the different environment variables. You use this to write out different functions that can be useful. Define Job sets up all the different files for you. Press escape and :q! To escape the script. We then transferred over the new file command we made onto the Linux server by example : scp hello world.sh - this would transfer over to the other server. Then to run the program all you would put for example : . Helloworld.sh this would then run the programme you created so mine said hello world! $# - number of parameters $0 - name of programme $1 pint parameters $2 second parameters $@ all parameters.

2 views0 comments

Recent Posts

See All

Denoises - Day 176

So today I was working on college work for most of today but around 5pm Ben asked me to do some denoises that was assigned to me but some...

Blog posts and training shot - Day 175

Friday 14th October 2022 So today all I did was switch between writing up blog posts and doing the training shot. Jake showed me how to...

Curve tool - Day 173

Wednesday 12th September 2022 So before work I checked the version that I rendered the night before and wasn't happy with it so I worked...

Comments


© 2020 by JESSICA LAMB

 Proudly created with Wix.com

bottom of page