Ubuntu :: Change The Working Directory Of Script?
Aug 5, 2011
I have a script that should start my Minecraft server. The script is a follows:
#!/bin/bash
java -Xincgc -Xmx1G -jar "/home/jamie/Programs/Minecraft Server/craftbukkit-0.0.1-SNAPSHOT.jar"
The script is located in my scripts directory in my home folder and it is in my path. But when I execute the script the server starts writing all the data to my home folder(The directory I am in). How can I tell the script to change its working directory to the server folder?
View 2 Replies
ADVERTISEMENT
May 2, 2010
how can i actually switch to another directory with "chdir" in perl.like the we used to do is bash as:
Code:
$cat abc
cd Desktop/
[code]...
View 1 Replies
View Related
Aug 1, 2010
I came from the Debian world so I did not do much building software from source. I successfully built wine from source, now the wine binary is in the same directory where the Makefile and all of the other source stuff is. I can run wine from that directory fine, but I sort of want to move it somewhere else. I tried moving the wine binary somewhere else, but when I try to run it I get
[code]...
What all do I have to move into the new directory to get wine working in the new directory? By convention, where should I move wine, I want it available for all users, should I move it to /opt/wine, or /usr/local/wine, or somewhere else?
View 6 Replies
View Related
May 15, 2011
Just a simple question
Code:
$ cat -
do in the Bash? I know 'cd -' changes directory to the previous working directory, but 'cat - ' does not seem to do the same thing.
View 3 Replies
View Related
Jul 15, 2010
I'm in a different type of shell (this is inside "screen"), I guess. It is like this:
Code:
sh-3.2$ cd /home/user
sh-3.2$
It doesn't change the directory.
View 6 Replies
View Related
Mar 27, 2011
How do I change to the directory /ect so I can add a path variable to the file called environment?
View 2 Replies
View Related
Jun 18, 2010
no matter what i do in there terminal when it comes to changing directorys or copying items it just dont work.this is what im typing
PHP Code:[code]...............
View 3 Replies
View Related
Jan 7, 2011
i used to use synaptic to install packages which seems to be installed somewhere like /usr/bin or /usr/local/bin, so my question is can i change the default or pre-determined installation directory, coz my partition / is kind of short of space.
View 8 Replies
View Related
Jul 27, 2010
I can change to a nother directory in home folder using cd command.I have several partitions in my hard drive.But i want to know ho to cheng to a directory in nother partition or flash drive using command line.how can i do that
View 6 Replies
View Related
Jan 24, 2010
I'm running Ubuntu 9.10 with Kvm. I've used a howto to configure my network. Seems to work fine, I've installed the Virtual Machine manager, when I go to create my Virtual Machine, I see the the image is automatically created in /var/lib/libvirt/images. I have a totally separate path for my images. How to I configure a different image directory
View 1 Replies
View Related
Feb 11, 2010
I'm working in R and would like to change where the program opens. Currently my default working directory is home/dave and I would like it to open into home/dave/R by default.I'm running mint with xfce.
View 2 Replies
View Related
Apr 21, 2010
Here is my vsftpd.conf file:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
[Code]....
View 3 Replies
View Related
May 27, 2010
i'm having issues with a folder which I cannot write to or seem to do anything else with? i figured i'd delete it and start again but i can't even do that!!
Code:
server@server:~$ sudo chown server /media/server/swap/downloads/incomplete/
chown: changing ownership of `/media/server/swap/downloads/incomplete/': Operation not permitted
[Code]....
View 5 Replies
View Related
Jun 12, 2010
My usb stick continually automounts at /dev/sda10, and for a certain operation I'm trying to do I need it to be mounted at /dev/sda (or sdb, sdv, etc); is there any way to change it's mount directory?
As a bonus question, or rather the real question, what I'm really trying to do is format a bootstrap partition as shown here
Code:
Command (? for help): p
/dev/sda10
# type name length base ( size ) system
/dev/sda101 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
[Code].....
View 1 Replies
View Related
Oct 29, 2010
i have problem on my ubuntu 10.10 after i change user name to root and home directory username ( old one ) , and now users and groups not working asnd all application on old user not working !
View 1 Replies
View Related
May 10, 2011
I have a usb that got corrupted whilst attached to a Vista computer.Now what was once a directory is now a file!It now reads as -rwxr -xr -x instead of drwxr -xr -x how do I change this back to a directory?
View 2 Replies
View Related
Jul 3, 2011
Basically, I'm in the terminal and I type in:cd desktop (or downloads or whatever)and nothing happens. I'm probably just being legendarily thick, but where am I going wrong?
View 9 Replies
View Related
Jan 6, 2010
I have newly installed Ubuntu server 9.10 in my server machine.And it has tomcat6 in itself.My friend have built a Java software in Fedora ,and he wants to move it to the new server.But problem is the directory structure is different between two systems.He has to either change his directory setting in his software or change the default tomcat6 ROOT directory. But I have not find any configuration file can do this job(change the tomcat default ROOT directory ).
View 3 Replies
View Related
Feb 26, 2010
I have created a folder in my /var/www/ as /var/www/borneo and when I try to install a smf forum I get this error: 550 Failed to change directory. I have installed vsftpd for the ftp.
View 5 Replies
View Related
Mar 13, 2010
when I try to access [URL]... I get an exception:
[code]...
I believe I need to change some directory permissions, but I can't determine exactly what.
View 1 Replies
View Related
Oct 13, 2010
I've been using Ubuntu for over 5 years. This time I decided to upgrade UNR to the latest 10.10. I am now running it from USB to try it before installing. Excuse my ignorance, but whatever happened to the Terminal? I cannot find it anywhere! I think this release is not going in the right direction if one of the most important tools in Ubuntu is hidden from an average user.
Also, how do I change to the root directory in the files and folders? or at least to the higher directory structure.I won't be installing UNR 10.10 unless I figure out these BASIC things.
View 2 Replies
View Related
Nov 8, 2010
how to change when running command "adduser" or "useradd" the placement of the users home directory. Have tried editing the /etc/default/useradd file with no results.
I want it to be placed in /var/www And I would also want to know how more folders and files can be created in the home directory automatically.
View 6 Replies
View Related
Dec 2, 2010
For some time I have been interested in life without a GUI, not necessarily living that life per-say but "interested" as a child would be about astronauts. So having taken said interest I've began to study it lightly at first, trying CMUS as my music player (A text based music player ran through terminal). I've also gotten a "Basic" (in the loosest of terms) understanding of how to import music through said program. Other than such, I know how to change directory, and see files via ls commands.
[code]...
I will sometimes elude me as to the full boundaries of it's uses; So I come asking this, amongst all of you does anyone live within a text based environment for extended periods? Days? Weeks? Years? What advantage does living a text based computer lifestyle give you against GUI folks?
View 9 Replies
View Related
Jan 16, 2011
I now have my ssh server all setup on my ubuntu 10.10 machine and properly working with a private rsa key. Anyway when I connect to it via my client it opens to: /home/myusername
I am able to run around the whole drive and have full access to everything, which is great. But I don't have anything on this hard drive. All my data and files that I really want to access are on the second drive of this computer. It doesn't have an OS on it, just files.how to change the directory to point to that drive and have full access of everything.
View 9 Replies
View Related
Feb 5, 2011
I run Ubuntu 10.10. and I have one annoying problem. When I want to set my Desktop directory in terminal by typing this: "cd ~/Desktop" I get an error: "bash: cd: /home/izvanzemaljac/Desktop: No such file or directory".
I really dont know what to do, I checked Google for this error and I didnt find a solution.
View 6 Replies
View Related
Jul 15, 2009
I just upgraded to fedora core 11. I need to change the permission of the html folder. The owner is currently set to root. Since there is no longer a root user (I just found out) it will not let my user account change the permissions in that directory from. How do you change directory permissions in fedora 11?
View 2 Replies
View Related
Dec 25, 2010
Yesterday I installed Fedora 14 on my computer. I was able to log in as root on a terminal fine until this morning. Now when I log in I get this:
Code:
[Silverback@Vanessa ~]$ su -
Password:
su: warning: cannot change directory to /root: No such file or directory
-bash-4.1#
I haven't deleted any files, so I have no idea how to fix this.
View 4 Replies
View Related
Oct 9, 2010
I have my hard drive arranged with a single large ntfs data partition and a number of smaller partitions for /home etc. Here's the line in fstab:
Code:
/dev/disk/by-id/ata-SAMSUNG_HD103SJ_S246J9FZ806954-part2 /home/shmuck/data ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
But the ownership for that directory is root and I can't change it for some reason, using this line:
Code:
sudo chown -R shmuck /home/shmuck/data
It just doesn't do anything.
View 7 Replies
View Related
Jun 29, 2010
In the old days of M$-DOS, there was the NCD (Norton Change Directory) utility. Anything of the sort in Linux?Explanatory note: you typed out the name of the directory you wanted to go to, that is, last element of the dir path.And you were, ipso facto, in that dir. If that was the only one by that name, good. When not, and if that wasn't the intended dir, you typed the same command again and you were in a second dir of that name. If this was the intended dir, good. And so on. It simply maintained a data base with the whole tree, and updated it when invoked from a newly created dir o by means of an option, NCD/R.
View 14 Replies
View Related
Jan 4, 2011
I have 3 images made by clonezilla now I want to restore 1 of them, but when I try to use clonezilla to restore, there's no option to restore image. I can see the images in home directory and file is owned by root in my home directory. I'm trying to transfer image to usb hdd.
Did I place image in wrong directory or is it permissions problem.
View 8 Replies
View Related