LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2017, 11:46 PM   #1
it_panda
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Rep: Reputation: Disabled
Smile How to use cd command for file.sh on Debian


Hi all ,i's new member.i have question,please help me.
I want run command "cd /usr/src/install_fusion.sh" but have issue "-bash: cd: install_fusionpbx.sh: Not a directory? How do to use cd command for "cd /usr/src/install_fusion.sh". Please help. Thanks.
 
Old 09-24-2017, 12:08 AM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
cd means change directory. You're probably wanting to run sh, which tells your computer to run the file with the default shell.
 
1 members found this post helpful.
Old 09-24-2017, 03:27 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by it_panda View Post
"cd /usr/src/install_fusion.sh"
makes no sense (as your shell told you).

it must be either

Code:
cd /usr/src
or

Code:
sh -c /usr/src/install_fusion.sh
on a side note, are you sure you want to run this script without knowing what it does?
especially since it sounds like the sort of script that requires root privileges! be double careful!
is it even compatible with your distro?

what are you actually trying to achieve?
 
1 members found this post helpful.
Old 09-24-2017, 07:20 AM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Code:
./file.sh
Add\DuckDuckGo: https://askubuntu.com/questions/1224...to-run-sh-file &c...

Last edited by jamison20000e; 09-25-2017 at 06:28 AM.
 
Old 09-25-2017, 12:00 AM   #5
it_panda
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
makes no sense (as your shell told you).

it must be either

Code:
cd /usr/src
or

Code:
sh -c /usr/src/install_fusion.sh
on a side note, are you sure you want to run this script without knowing what it does?
especially since it sounds like the sort of script that requires root privileges! be double careful!
is it even compatible with your distro?

what are you actually trying to achieve?
you right, i know it. i need "git pull" it to can make the script for backup my system. Thanks
 
Old 09-25-2017, 12:51 AM   #6
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Welcome to LQ. You can use the ThreadTools/link at top of page, to mark this as SOLV'D, if&when you have come to a resolution.

From web-searching, I'm wondering if it was this: https://github.com/google/earthenter...r-Earth-Server

Feel free to optionally add more details, for future searchers who find this. Glad it's workng; best wishes!!!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Batch file conversion command? the same command on all files in a folder ? pete2222 Linux - General 6 10-02-2010 11:59 AM
[SOLVED] append command output to file by giving command in terminal sumeet inani Linux - Newbie 4 07-03-2009 10:36 AM
Debian etch - Unable to send mail from command line or from php mail command lqforumuser Linux - Newbie 1 03-01-2009 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration