is there another way to get to my desktop directory in gitbash - directory

I am trying to change directories into my desktop but i keep getting this message.
is there another way to access my desktop from here.
mj_pr#markiem MINGW64 ~ (master)
$ cd desktop
bash: cd: desktop: No such file or directory

It may be easier to just right click on the folder that you want to access from your desktop and open your terminal.

Related

Having problem to install avrdude on macOS Terminal

First of all, I have trouble installing avrdude via Homebrew because of some network problems. So I download it manually from its website.
However, after I unarchive the avrdude-7.0.tar.gz file I just downloaded, I can find no bin directory there. It's unusual.
Then, I added its directory to my system PATH by export PATH=$PATH:/Users/myUserName/Developer/bin/avrdude-7.0/bin/. But when I tried to use avrdude in Terminal after I restarted my computer, It says zsh: command not found: avrdude.
How can I make it works?
screenshot of avrdude-7.0 directory downloaded
Apparently you downloaded the source archive of the tool, not the executable software.
Now you have two options:
Download the binary executable.
Compile the tool yourself. Make sure you understand how to do this.

No such directory or file - Mac

I'm pretty rookie to this, but I managed to get this code running when I had a PC.
Now I want to get this working on my MacBook.
I'm using Rclone to sync to Jottacloud, and I want to make a clickable file, just as a .bat file in windows.
This is my simple code:
#!/bin/bash
cd /
cd /Applications/rclone
rclone copy /Users/windsvendsen/Pictures/Billedebank Jottacloud:Billedebank
Running it in Terminal, without the #!/bin/bash, it works as it should.
But when I save it as a file, without extension, and running chmod 744 on it, it returns with the error "No such file directory"
And here does my knowledge end.
It is probably a pretty simple problem, but I do not manage to get the essence out of my google searches.
Thanks in advance!
Can you do ls on the directory and see if the file actually got created

zsh: no such file or directory:

I have an assignment where I have to use a syntax checker on a python program to see if it's correct. The line I use is:
/directory$ python syntax-checker file.py
However I keep getting the error no such file or directory:
I am supposed to open the python file with the syntax-checker which is located in the directory.
I also have no clue why my terminal looks the way it does.
It says: fullname#firstname-MBP-2 ~ % which seems odd. Can someone help me out?
When you type /theoinf you're trying to change to a directory that doesn't exist (if you ls / you'll notice theoinf isn't in the output). Your mkdir command was performed in your home directory so that's where the theoinf directory will exist. Where you're actually trying to change to then should be:
/Users/[username]/theoinf
on a mac, or a shortcut:
~/theoinf
fullname#firstname-MBP-2 ~ % is just your terminal prompt showing:
fullname - your username
firstname-MBP-2 - your hostname
~ - the current working directory, your home in this case.
If you don't like the way your prompt looks, I'd recommend installing ohmyzsh. It has a lot of great functionality and lets you apply a wide range of themes to your terminal.
Also, iterm2 is a replacement terminal for mac which has far greater features than the standard terminal you get in Mac OS.

Can't find a way to get graphic tablet drivers working on mint

So i was trying to install the XP Pen Driver for my Deco 01 v2 graphics tablet on my Linux Mint 19.2 Tina when i came to encounter the following error:
./Pentablet_Driver: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.10' not found (required by ./Pentablet_Driver)
I went on to install qt 5.10, still the same error. Others suggested to just change the path wth sudo gedit /etc/ld.so.conf.d/randomLibs.conf which didn't change a thing.
Link to drivers:
https://www.xp-pen.com/download-440.html
The manufacturer has a page describing how to set up their software on Linux with pictures. However, when following them, you end up with a folder name somewhere along the line that has spaces in it, which causes issues.
So a modified set of instructions might look like this:
Connect your XP-Pen product to the computer.
Download the Linux Beta driver from XP-Pen official website.
When the download is complete, extract the compressed folder.
Rename the extracted folder to something without spaces.
Inside the renamed folder is another compressed folder which should be extracted.
Inside the final extracted folder, ensure "Pentablet_Driver.sh" has execution permissions by right clicking on it and going to "Properties->Permissions" and verifying that "Allow executing file as program" is checked.
Open the terminal. (CTRL+ALT+T)
Type "sudo ", then drag Pentablet_Driver.sh from the file browser onto the terminal.
Type the password to complete.
Make sure that you write exactly
sudo ./Pentablet_Driver.sh
instead
sudo ./Pentablet_Driver
I had the same error until I noticed that I forgot to add .sh at the end.

Launching R gui from the command line and setting the working directory to the current folder

On a Mac, is there a way to launch the default R gui from the command line, with the working directory set to the current folder?
assuming R.app is in your Applications folder:
open -a /Applications/R.app .

Resources