So far so good, OS is great. Very different to the last linux install I did way back in probably 2005!! How far it has come! Great work!
Anyhow so im trying to learn how this thing works, so starting with shell scripts. I have been following this simple procedure without any luck
Created a bin directory at /home/coolmint/bin
Created a simple script showing some System Info called "System_Info" and saved it in that bin directory.
Chmod it to 755
Im trying to set my PATH so I can call on scripts directly from this directory in terminal without having to cd to it.
Code: Select all
coolmint@coolmint-desktop:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
I have edited the .profile file and restarted the terminal only to get "Command not found". Ive googled and tried a few things only to fail setting up this simple setting.
Code: Select all
# ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package. #umask 022 # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi export PATH="$PATH:/home/coolmint/bin" export PATH=$PATH:/home/coolmint/bin export PATH=/home/coolmint/bin:$PATH