ubuntu print path
echo "$PATH"
Here is what the above code is Doing:
1. We’re using the echo command to print the value of the PATH variable.
2. We’re using the $ symbol to tell the shell to substitute the value of the variable.
echo "$PATH"
Here is what the above code is Doing:
1. We’re using the echo command to print the value of the PATH variable.
2. We’re using the $ symbol to tell the shell to substitute the value of the variable.
cat line-size.c | xclip -selection clipboard Here is what the above code is Doing: 1. The first line is a shebang. It tells the shell what program to use to run the script. 2. The second line is a comment. It’s ignored by the shell. 3. The third line is a command. It runs the…
locate typesizes.h Here is what the above code is Doing: 1. It’s creating a new file called typesizes.h 2. It’s writing the following code to that file: #ifndef TYPESIZES_H #define TYPESIZES_H #define SIZEOF_CHAR 1 #define SIZEOF_SHORT 2 #define SIZEOF_INT 4 #define SIZEOF_LONG 8 #define SIZEOF_LONG_LONG 8 #define SIZEOF_FLOAT 4 #define SIZEOF_DOUBLE 8 #define SIZEOF_LONG_DOUBLE 16…
brew install –cask chromium Here is what the above code is Doing: 1. Install Homebrew 2. Install Homebrew Cask 3. Install the following apps: – Google Chrome – Firefox – Opera – Chromium
mkdir ~/bin curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo export PATH=~/bin:$PATH Here is what the above code is Doing: 1. Create a bin directory in your home directory 2. Download the repo script and save it in ~/bin/repo 3. Make the repo script executable 4. Add ~/bin to your path
sudo chown -R USER /var/www/html/ sudo find /var/www/html -type d -exec chmod u+rwx {} + sudo find /var/www/html -type f -exec chmod u+rw {} + Here is what the above code is Doing: 1. Create a new directory called /var/www/html/ 2. Change the owner of the directory to the user you created 3. Change the…
The server’s host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server’s rsa2 key fingerprint is: . If you trust this host, hit **Yes** to add the key to PuTTY’s cache and carry on connecting. If you want to carry on…