[Q] cd command - General Questions and Answers

Hi guys! I have Ubuntu in my computer and I was trying to make the cd command, but the directory has spaces, and it doesn't work! Do I need to replace the spaces for any simbole?
Thanks,
pedrorubster

Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

pedrorubster said:
Hi guys! I have Ubuntu in my computer and I was trying to make the cd command, but the directory has spaces, and it doesn't work! Do I need to replace the spaces for any simbole?
Thanks,
pedrorubster
Click to expand...
Click to collapse
What exactly is it that you are trying to do? The 'cd' command is to 'Change Directory', if the directory you're trying to get into has a space it should still read it, but to make things simpler, whenever you have a folder that has more than one word, use ( _ ) underscore instead of a 'space'. Makes things easier for ya. I do this for every folder and file I have on my computer.
MoPhoACTV Initiative

right, I have Linux and W7 installed, and have the same problem. All folders names with spaces should be replaced for a symbol (_ is fine).

Related

ThemesTool

If this has been posted before - Sorry.
ThemesTool.DLL previews the main image of a theme file (*.tsk) from windows explorer without having a need to install theme applications.
Copy to /Windows/System32 folder.
Register the file using regsvr32.exe - C:\>regsvr32.exe themestool.dll (edit : from C:\ to C:\> for the sake of the elite)
Change the folder view to thumbnails.
Voila.
Cool, nice feature
command line you mentionned is not quite right though.
should it be just:
regsvr32.exe themestool.dll
bdarras said:
command line you mentionned is not quite right though.
should it be just:
regsvr32.exe themestool.dll
Click to expand...
Click to collapse
I believe that's what I wrote.
Unless of course you find I'm too basic for you.
"Mentionned" is not quite right either.
[Krueger said:
Dr.Stein]"Mentionned" is not quite right either.
Click to expand...
Click to collapse
sorry about my bad english
Don't be so agressive, I am not elite and do not think you are basic; I appreciated your contribution and wanted to help.
On my computer regsvr32.exe is not in c:\ but in c:\windows\system32
so typing as you mentioned "C:\regsvr32.exe themestool.dll" or "C:\>regsvr32.exe themestool.dll" does not work.
I would have to type "C:\windows\system32\regsvr32.exe themestool.dll" or just "regsvr32.exe themestool.dll" as I suggested in my last post.
PS: If you open a DOS window and type "regsvr32.exe themestool.dll" in front of the "C:\>" I realize it will look like "C:\>regsvr32.exe themestool.dll" but that's another story :roll:
Thanks for the clarification. My command line knowledge is terrible and it did not work the first time for me either. C:\windows\system32\regsvr32.exe themestool.dll worked for me. Thanks!

ABD for MAC users PLEASE HELP

Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
You mean adb, right?
The commands for adb are pretty much the same ones used on windows
Not development...post in general.
Anyways,
do you have the sdk set up as per these instructions? You dont need to worry about the eclipse stuff. The most important thing is getting the sdk downloaded, extracted and the /tools dir added to your path. From there, the command are exactly the same. eg:
Code:
adb push
adb pull
adb shell
adb shell reboot recovery
...
LostinThesauce said:
Hello everyone im a noob here but im slowley learning. i have searched and searched including the ABD for dummies they all make mention of ABD for mac but then move right along into windows how tos. im sorry if this is the wrong place for this post but can anyone point me to a place that actually explains ABD usage for mac i know nothing about terminal and i think thats what it want me to use. i really mean it ive been looking for a good mac tuterial for days!!!!!! thanks
Click to expand...
Click to collapse
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
hr00st said:
to use ADB and FASTBOOT you need to mount your SDK foldert (you "need" tools folder) and then use all commands starting with ./
for example ./fastboot reboot
PS if you want to use fastboot, you have to download it separate from HTC site.
Click to expand...
Click to collapse
You dont have to mount the folder. It may be easier but in the long run adding it to path will teach you more. Just do a google search on edit path osx and you will find how to create or edit the bash_profile to add the tols folder to your path. from there you just open terminal and adb away
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
add me as #2 who never went iphone. i stayed winmo until i could get a canadian spphire shipped to usa to run the htc sensui. btw...i use mac for me and pc at work and my macbook runs a virtual machine so i fire up xppro os in a dedicated "spaces" desktop so i do use sdk and copilot's nav interface in windows.
i guess i'm "bi". actually "tri" now
Good to go
got it running this is fun
LostinThesauce said:
got it running this is fun
Click to expand...
Click to collapse
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
lpasq said:
cool. think you might be motivated to write a simple guide for the rest of us mac users? not too noobish. maybe more targeted to average+ users.
Click to expand...
Click to collapse
There is no need in this. Everyone can find all information on GOOGLE. It is easer then "Easy Button"
MAC+ANDROID=FRIENDS FOREVER!
Setting up ABD for OSX, Hackintosh, mac newbies like myself.
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Johnny Blaze said:
First make sure you have downloaded the latest SDK from google.
In finder go to your home folder and extract the sdk into a folder named Android.
If you only plan on using ADB you can just extract the tools folder contents there.
Now open up Terminal...Applications/system utilities
Type in the following
echo $shell
ls -a
If you see a file named .bash_profile in the list you are ok if not we have a few things to do.
To create a .bash_profile, in terminal do the following
touch .bash_profile
This will create a blank file if there is none. Then,
open -e .bash_profile
This will open it in TextEdit. Add the following line:
export PATH=${PATH}:*<your_sdk_dir>*/tools
Where <your_sdk_dir> is the full path to the android sdk folder (type
carefully, remove < > brackets).
For example, if the android folder is in the eclipse folder on your Desktop,
it would be:
export PATH=${PATH}:/Users/David/Desktop/eclipse/
android-sdk-mac_x86-1.0_r1/tools
Save and quit.
then all you have to do from there is adb away.
If you need more info please follow this link where I copied the info from.
http://groups.google.com/group/andr...0460fb16ea06c/dd175d8675f33827?lnk=raot&pli=1
Surprising what you can find in the google android groups.
Click to expand...
Click to collapse
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
really??i know of many people lol..macs are just better and less of a pain in the ass to use..and if you watch the google confrences..theyre using macs lol
farbird said:
u are the 1st person i know whom uses and mac and didnt get the iphone... but got android instead..
Click to expand...
Click to collapse
i use a mac and love android. hate the iphone
lpasq said:
thank you very much. i really appreciate those who don't waste their effort flaming a request for info. "that was easy"
Click to expand...
Click to collapse
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
hr00st said:
If my words offended you, i apologize for that. I thought it was just unfair, when i was searching for INFO, i was sent to google and thats why i did the same thing.
Let's respect each other.
Click to expand...
Click to collapse
thank you. yes, respect and support

[Q] adb is not recognized as......

I rooted my hero on 2.1 before on a different computer a while back so im fairly familiar with this process. But i when i type in the file path for the C:\android-sdk-windows\tools and hit enter then type adb devices i get an error message that says
'adb' is not recognized as an internal or external command,
operable program or batch file.
I tried all the troubleshooting i can think of like
making sure its the right path to the tools final
making sure debugging is on
deleting the drivers
reinstalling htc sync
I dont know is this info is relevant but ill share it any way.
Im running windows xp
its an old work pc so idk if i have Admin rights(How do i check??)
If any of you can help thatd be much appreciated
Did u add tools directory to the PATH?
Sent from my HERO200 using XDA App
Hey bird, I had the same problem a few days ago. solution for me was, that adb is not located in the tools folder anymore. its located in another folder.I'm not in front of my pc right now.just check where in the windows sdk folder the adb.exe is located now.
Hope that helps you too.
Greetz ricola
Sent from my HTC HD2 using XDA App
if its the updated sdk you will have to update it. close and restart,and then reopen your run command and type in \platform\tools\. they changed the file path when they updated the new tools.
ricola7 said:
Hey bird, I had the same problem a few days ago. solution for me was, that adb is not located in the tools folder anymore. its located in another folder.I'm not in front of my pc right now.just check where in the windows sdk folder the adb.exe is located now.
Hope that helps you too.
Greetz ricola
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Thank you very much i searched for adb.exe and found it in the platforms-tools folder thank you.
If any of you can help thatd be much appreciated
Click to expand...
Click to collapse
I'm too tired to read the whole thread right now, so someone has probably answered this, but here goes..
Previous versions of the Android SDK, adb was located in the tools folder, ie: if you installed the android SDK at C:\android-sdk-win, it would be c:\android-sdk-win\tools
The new release of the android sdk, adb has been moved, and is now located in the \platform-tools folder , ie; c:\android-sdk-win\platform-tools
much like the forums, file search is your friend sometimes
take care

[Q] how to open recovery.img file obtained for android on windows platform?

how to open recovery.img file obtained for android on windows platform? I installed clockworkrecovery 5 but I dont like the background image and it is slightly messy, so I would like to edit ig but it doesn't open. I tried yaffey to open it. the file system I think is yaffs2 but I dont really know. how can I know this too?
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A
caponer said:
how to open recovery.img file obtained for android on windows platform? I installed clockworkrecovery 5 but I dont like the background image and it is slightly messy, so I would like to edit ig but it doesn't open. I tried yaffey to open it. the file system I think is yaffs2 but I dont really know. how can I know this too?
Click to expand...
Click to collapse
well, attach recovery.img and that image you want for background and we well see..

Something to make a list of a folder's content

I'm searching, 3 days of research, but it seems there is not an app, a simple thing for listing the content of a directory to make a text document or similar.
Tons of software for windows, freeware or not, but nothing for android. Is it possible???
I need to list my music direcory content (many many files, about 2k) and no windows software can manage the external sd of my phone (asus zenfone 3 with nougat); i can read, transfer, erase or play files but i can't make a list o musical files.
I'm getting nervous, can someone help me???
bibbomio said:
I'm searching, 3 days of research, but it seems there is not an app, a simple thing for listing the content of a directory to make a text document or similar.
Tons of software for windows, freeware or not, but nothing for android. Is it possible???
I need to list my music direcory content (many many files, about 2k) and no windows software can manage the external sd of my phone (asus zenfone 3 with nougat); i can read, transfer, erase or play files but i can't make a list o musical files.
I'm getting nervous, can someone help me???
Click to expand...
Click to collapse
1. Download terminal emulator.
2. Go to the directory using "cd" command. I hope you know basic linux.commands
3. type "ls > filename.txt"
I'm not sure it would work on Android. I don't have my phone right now to check this. Atleast you can try.
psxda97 said:
1. Download terminal emulator.
2. Go to the directory using "cd" command. I hope you know basic linux.commands
3. type "ls > filename.txt"
I'm not sure it would work on Android. I don't have my phone right now to check this. Atleast you can try.
Click to expand...
Click to collapse
Many thanks, i tried on i9300 and this doesn't work for me. Tried putting spaces on various positions (i know dos, so...) but nothig to do...
bibbomio said:
Many thanks, i tried on i9300 and this doesn't work for me. Tried putting spaces on various positions (i know dos, so...) but nothig to do...
Click to expand...
Click to collapse
I tried it using Termux app and it worked. You need to give storage permission to the app to access​ sd card.
Yes, i do, writing "su" as first command in terminal... is it correct? Then various cd till music folder and the "ls..."...
bibbomio said:
Yes, i do, writing "su" as first command in terminal... is it correct? Then various cd till music folder and the "ls..."...
Click to expand...
Click to collapse
su
cd /
ls ( to check whether you're​ on the root directory)
cd /sdcard/*YOUR MUSIC FOLDER*/
ls ( this will list all the files in the corrent folder)
ls > ./music.txt
If this didn't work can you tell me the address to your music directory? Let me give you exact steps.
Cheers!

Categories

Resources