Tag: linux
-
Why ubuntu snap SUCKSSSSS
Ubuntu snap seems like a good idea. You search point and click install and it works right… So what could be the problem. Oh there is ONE GIANT, HUGE GIANT PROBLEM. EVERYTHING IS OUTDATED. Since 90% +- of all of the software you can install with snap is outdated or doesn’t work, or doesn’t work…
-
Linux cp command how to copy files to a directory excluding current directory name
So you want to copy files from one directory to another including all sub directories and files. It sounds simple at first. Say you have a directory with files named /directory1 and you want to move the files and directories within that directory to another named /directory2. How do you do this with the cp…
-
Ubuntu 20 slow and freezes often
I’ve used Ubuntu since version 8 or about 2009/2010ish. It used to be super fast. You used to be able to run it on ANYTHING. It was easy to use. I can’t take the damn slowness these days. Update. Apparently Gnome is the culprit plus some other useless crap. Some say Kubuntu is faster. I…
-
WordPress : Update failed: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.
If you don’t have much server administration experience, please click contact I can help you do this and get your website working correctly. So you got this error when trying to update one of your plugins or upload an image or something else? I keep getting this error every few months myself. I have not…
-
How to go back multiple directories in a linux terminal command line
Often when I am using the command line in a terminal on Linux I need to go back more than one directory. Usually you use the command cd .. Which takes you back one level in a directory. For example if you are in /var/www/http and you type cd .. you will be in directory…
-
Why doesn’t bash script recognize aliases
Here I won’t be doing much explaining, just listing links so people can read about this befuddling issue. It often boggles my mind how differently you must write shell scripts vs the command line commands. It is often very inconsistent, I hate inconsistencies. Basically Aliases within Linux shell are not recognized without some fancy hacky…
-
How to switch users in Linux Bash Shell script and execute multiple commands as different user
If you search you will find different answers to this. You can do this in multiple ways, here I will talk about 2 ways, single command and multiple commands. First the idea is to switch from say root user to a named user you created or was created for you on your Linux server to…
-
Bash how write large amounts of text to a file
I searched and tried for days to find the answer to this. All I wanted to do was be able to basically create a file and write text to it exactly as I had entered it in a shell script. Every suggestion on the internet was fubar. Note : to run these commands, put them…
-
How to make linux shell scripts wait for a command to finish before running another
I am writing this so when other people google how to do it, they have something to find to save them time. For days I tried to figure out how to make sure a command finished before another was run. I couldn’t find any information anywhere. If you are like me you may be thinking…
-
What does a dollar sign followed by a square bracket $[…] mean in bash?
I saw something similar to this in some code in one of my books var=$[ $var1 – $var2 ] I wanted to know what it did and why it was used. I’m a perfectionist with OCD. Turns out it is deprecated from the BASH language. Originally $[] was used to do math in Bash scripts…