Ubuntu :: Alias - SCP File From Folder To Network

Dec 17, 2010

I know this is a relatively simple problem but no matter what combination I try for my alias, I don't seem to be able to get it right! All I want to do is scp a file from my current folder to a location on the network:
Code:
scp filename username@computername:/folder1/folder2

This is the usual layout of the command that I use, so I thought that to save time, I would create an alias or even a function which did this for me, so all I had to type was
Code:
scp101 filename
and it would copy it to the set folder on the remote computer...

My attempt at an alias looks like:
Code:
alias scp101='scp !* username@computername:/folder1/folder2'
and I have also attempted a function:
Code:
scp101()
{
scp "$1" username@computername:/folder1/folder2
}

The alias tells me that filename is not a directory, which I assume means that I have some of the syntax wrong in the alias but I did a google search and I can't seem to find a decent example of what I'm trying to do. When I load up a terminal, I get an error message about the "(" of the scp101 function - so I've obviously can't get the syntax of that right either...

View 2 Replies


ADVERTISEMENT

Ubuntu Networking :: Universal Network Folder Syntax For The Network And Other "special" File Systems?

Jun 16, 2011

Paths displayed in Nautilus appear to be just that. Nautilus private syntax. Esp with respect to anything "special". Apparently when you hand a path like this to a program to open, you get a folder in your home directory: smb://cyberstorm/c_drive/

At least that is what my program does with it. A folder called smb: in my home directory. Probably because the default folder for the program is the home directory [~]. Is there a universal network folder syntax for the network and other "special" file systems?

I see things like: network:/// and computer:/// showing up in "properties" dialogs for some things. But these are useless to a program apparently.

At least a program written in Qt. Is this a Qt problem, or a problem with Ubuntu not yet making the network a first class citizen in the world of paths? Who do I complain to? Time for the network to be a first class citizen, right?

View 9 Replies View Related

OpenSUSE Network :: Routing With Alias Source Address

Jan 20, 2010

i have a big problem y have to make an alias for the eth0 interface, i made it with yast and my alias was eth0:1, first, if i try to shutdown the interface i cant it give an error and tell me that the interface dont exist and the second threat is if i can put a default gateway for this alias something like this in other distributions:

route add 128.26.6.11 gw 192.168.28.201 dev eth0:1

View 3 Replies View Related

General :: Remove The Network Alias (ex: Ifcfg-eth0:2)from RHEL5

Mar 9, 2011

how to remove the network alias (ex: ifcfg-eth0:2)from RHEL5, i had deleted the ifcfg-eth0:2 file from /etc/sysconfig/network-scripts/ifcfg-eth0:3but i can still see the entry in the graphical network configuration after i issued the command system-config-network, i want to remove it from there.

View 3 Replies View Related

Server :: Creating Alias Or CNAME Record For Each Network Device

Oct 28, 2010

I'm running Ubuntu Server 10.04 to provide DHCP and Internet Sharing on my home LAN. In a previous configuration, I was running Fedora + AMAHI to provide the same services. As most of my linux devices are Ubuntu, I decided to decommission and rebuild my server. I've been able to configure all of my services with the exception of one. As a rule, I assign static IP or reservations based on MAC address's for any of my network devices or appliances.

One cool feature that AMAHI provided a GUI for, was the ability to recognize devices by name as well as IP. i.e.. "http://192.168.1.50" or "http://home-NAS" Going from memory, the long name upon first entry may actually have been "http://home-NAS.adomainname.com"? From my reading, I think I either need to setup up a Static Alias or CNAME for each assigned IP. I can't find any tutorial's that will walk me through this process. I'm guessing I need to generate the records under one of the master DNS zones, but that is just a guess?

View 1 Replies View Related

OpenSUSE Network :: Flash In Mozilla - Cannot Find The File That The Plugin Folder Is In

May 20, 2011

I am trying ti instal adobe flash but I cannot find the file that the plugin folder is in. I am running open suse 11.4. Mozilla firefox beta 12. =

View 9 Replies View Related

Ubuntu :: Set Up An Alias For Update, Upgrade And Clean By Putting Line Into .bach.rc File?

Aug 3, 2010

I tried to set up an alias for update, upgrade and clean by putting this line into my .bach.rc file

Code:
#alias ud= 'aptitude update && sudo aptitude upgrade && sudo aptitude dist-upgrade && sudo aptitude autoclean' but when I type ud I get this error message, by the way I tried the bash.rc entry both commented and uncommented with the same result.

[Code]..

View 4 Replies View Related

Ubuntu :: Kde 4.5 - Move A File Or Folder Into Another Folder, All The Icons Arrange Back To The Left Side

Sep 14, 2010

When I position icons on the desktop in specific places, then I choose to move a file or folder into another folder, all the icons arrange back to the left side. This happened in an earlier version of KDE 4.x, disappeared the next version, and reappeared. how to keep this from happening. It makes using the desktop a pain in the you know what.

View 2 Replies View Related

Ubuntu :: Drag File/Folder To Taskbar Button Creates Launcher, Not Bring Folder To Foreground?

May 20, 2011

After upgrading to 11.04, I noticed something strange, being that when I want to drag a file or folder from one Nautilus folder window to another which is not visible, I can no longer hold the item over said folder's taskbar button and wait for it to appear. It just shows the + for copy, and when I let go (which I have no choice but to eventually do), it creates a launcher to that item (I assume it's doing that, and not actually copying there, but the + has me unsure).

I've looked in Nautilus's preferences to see if this is some new behaviour that I can revert back to, but could find nothing there.

I'm of course using the Classic desktop with bottom panel being the taskbar. If you know how I can rectify this, please let me know, as the times I would want to create a file or folder launcher without the usual hassle would be rare, but I am constantly dragging stuff from one folder to another, and it would be a real pain to have to line up source and destination folders each time.

View 4 Replies View Related

Debian :: Create Folder From Filename And Move File Into Folder

Feb 13, 2011

this is posable but am trying to do this "Create folder from a filename and move the file into the folder" i have 500000+ file's i need to do with is there a easy way?I really don't want to download them all make/move them with filemonkey just to re-upload them

View 2 Replies View Related

Software :: Build File Or Folder Missing In Modules Folder

Apr 14, 2009

i am trying to install a driver for my belkin wireless usb adapter but when i type make it says cannot find lib/modules/<debian version>/build so it does not configure the sources.

View 1 Replies View Related

Software :: Copy A File Or Folder In Some System Folder?

Dec 1, 2010

When i want copy a file or folder in some system folder like sbin,Etc.show me error about privilage but when I'm in console i use su command for become admin and i can copy my file or folder.in other operation system like windows user can copy anything,i want know for direct copy my folder in linux without console what should i do? i must join my user name in root group?

View 4 Replies View Related

Programming :: Make A New Folder For Each File In A Particular Folder

Mar 28, 2011

I been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:

I have a directory full of files. For each file in the directory create a new subdirectory with each files name.

I tried this:

#im already in this directory
aaa=./*
for a in $aaa
do mkdir $a
done

One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.

I tried stuff like:
aaa=./*
for a in $aaa
do mkdir "'"$a"'"
done

This of course also did not work.

Additional I tried just creating a folder with the name of one of the files and I got this:

mkdir: cannot create directory `(audio) - R56339.EXE': File exists
Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?

Just to be clear here are the contents of this folder:
~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls
(audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE
(Modem-datafax-V92) - R54403.EXE OEM_Applications

[Code].....

View 1 Replies View Related

Ubuntu :: PCMan File Manager File/folder Numbers In Wrong Order?

Jul 25, 2011

I have recently switched to using LXDE on my PC and I am on the whole pretty pleased with it. However,PCMan is giving me a really odd problem. Some of the files/folders are being displayed in the wrong order where they contain numbers. They are being ordered by their first digit not the whole number.

[Code]...

View 5 Replies View Related

General :: File Privileges - Check And Set Who Can View Or Open A Given Folder Or File?

Jul 30, 2010

How can I check and set who can view or open a given folder or file?

View 1 Replies View Related

Programming :: Make A Folder For Each File In A Directory Then Move The File Into It

Nov 29, 2010

Initially I thought - use a for loop with ls in it:

Code:

However this causes lots of problems (folders have extensions, I have duplicate folders, the names with spaces create a folder for each element of the name).

The contents of the folder is basically movies (some with subtitles). Some of the names have things like (original) or CD1 CD2 in them.

View 15 Replies View Related

Ubuntu :: Un-share The Folder Through A Network?

Nov 16, 2010

I had share my folder through network with other PC,now i want to Rivert(un-share) this,how can i..?

I had right-click on that folder but i didn't get any option for that....it's my first time of sharing data via samba..

View 4 Replies View Related

Ubuntu :: Sync Between A Network Folder?

May 4, 2011

I'm wondering what the best way to sync certain folders located on my network server with my Ubuntu laptop is. I've tried Unity, but it was a little too geeky for me . Dropbox would be perfect, except people were having issues syncing with network folders, some losing all their files in the process. All I want to do is synchronize a few folders with my local "My Documents" folder on my Ubuntu laptop, so I can write my school papers without an internet connection. Then, when I'm connected again, I should be able to sync with the folder on the network. It should also work vice-versa as well (update a file on the NETWORK, sync, then access the updated file on my Ubuntu laptop).

View 3 Replies View Related

Ubuntu :: How To Share A Folder On Network

Jul 31, 2011

I'm probably missing something really simple here...

In Ubuntu, with Nautilus, there is an easy GUI method of making folder to be shared and visible over the network.

I can't seem to find the means of doing this in Xubuntu, either in Thunar or Gigolo.

I can use either of these to browse folders on other networked machines I have shared using Nautilus.

I had Nautilus for a while on my XFCE machine and used that to share some folders, but I removed it as it was conflicting with Thunar at times.

View 4 Replies View Related

Ubuntu :: Cp Files To A Network Shared Folder?

Dec 6, 2010

I'm attempting to write a simple BASH shell script to copy some files from one of my Ubuntu machines to another Ubuntu machine's shared folder. I've searched the forums but I haven't found anything on simply using cp across a network.Since Nautilus can do it I presume I should be able to do it from the terminal or from a BASH script -- this might be my first mistake?I have tried the obvious:

cp My_local_file //Name_of_other_ubuntu_computer/shareddocs
and
cp My_local_file smb://Name_of_other_ubuntu_computer/shareddocs

but those don't work. Sharing is enabled for the shareddocs folder.
I have tried mounting the remote shareddocs folder but it seems I need to install some other package to do this? If this is true, how does Nautilus manage to do it without an additional package?

View 4 Replies View Related

Ubuntu :: Sharing Folder With Windows Network ?

Nov 18, 2010

I have two partitions, both formatted as ext4. One with Ubuntu 10.10 64-bits and the other just for data (formatted as ext4 zero). I wanted to share a folder from this second partition. I followed the instructions on http://tech.mobiletod.com/how-enable...cation-ubuntu/ but there was not any "Windows networks (SMB)" option, only "Unix networks (NFS)".

View 14 Replies View Related

Ubuntu :: Windows Network / Cannot Create Folder On Share?

Jan 20, 2010

We have a storage server here running Windows. I have full permission to my share, blah blah, whole 9 yards. When I'm on Ubuntu and connect to it, I cannot create a folder or paste any items in "my" folder unless I put it in a sub folder.\storagejason = cannot create folders.\storagejasonstuff = can create folders.So, I come here asking the obvious question: dubya tee eff??

View 1 Replies View Related

Ubuntu :: Home Folder Disappear When Connected To Network

May 28, 2010

I recently upgraded to ubuntu10.04 LTS via update manager. Previous version was 10.04 beta. After upgrading I am facing very strange problem.

1) If I start my laptop with network connection then all the folder under /home get disappear. When I do ls -l /home it says no folder found. As all the folder under home is disappearing it is giving so many errors when I login and as a result of this I am not able to start the gnome UI.
I tried to mkdir under home and it says cannot create directory.
I tried with root login but same error.

2) But it if I start my laptop without any network connection then I am able to see all the folders under /home and able to login successfully without any error.
I tried to mkdir under home and it was successfully.

3) I also tried this option, first start the laptop without any network connection and login successfully ( Able to see all folder under /home) but as soon as I plug the network cable and once it is connected all folder under /home disappear and system starts failing.

How to recover that user as I am having that user since ubuntu8.04 and lots of data and customization is there. My previous 10.04 beta version was working perfectly.

View 4 Replies View Related

Ubuntu :: Shared Network Folder Contents Not Showing Up Over SSH?

Jun 20, 2011

I have a Windows maching with an attached NAS Drobo device. I have a linux maching running Ubuntu 11.04 and have edited the fstab file and been able to map the windows folders for the Drobo and they all mount up fine. On the Linux machine itself can access these folders and run music/video files from them. But when I'm at another computer and SSH into my Ubunutu maching, I can see the mounted folders using the ls command but I can't see the contents of those folders.

View 4 Replies View Related

Ubuntu :: Folder Becomes A File

Feb 5, 2010

I have a folder that I don't know why becomes a file and now I can't open it. Can I do somthing to convert again into a folder. I thinking about commands like chmod somthing like that.

View 5 Replies View Related

Ubuntu :: File To Folder With Same Name?

Mar 8, 2010

Is their a way, or a script/command that can move files into their own folder, naming the folder the same name as the file?

View 1 Replies View Related

General :: Mount Network Folder ?

Mar 5, 2010

How do I mount a folder from different server in the same network? For instance, I have a server named A having IP=192.168.1.1 and a server B having IP=192.168.1.2. I try this command from server A but it does not work. Do I have to install samba in order to mount network folder?

Code:

View 14 Replies View Related

General :: Sharing A Folder On The Network ?

Jun 3, 2011

It is probably a very easy question, but I could not find the right answer on the net so far. What I am trying to do is to set up a network of machines running Ubuntu 11.04. On of these machines will have a folder that needs to be shared with all the other machines. Eventually, this folder should be mounted at startup on the machines that are accessing over the network.

So, what I tried to do was: sudo mount 192.168.37.202:/home/user1/dir1 /home/user2/dir2 -o username=user1,password=password1

dir1 is the folder on machine 192.168.37.202 that should be shared. This is the response that I get:

mount.nfs: an incorrect mount option was specified

So, what am I doing wrong? Do I have to install anything special?

As I said before, eventually I want to have an automatic mount, so I guess that I have to edit /etc/fstab. What does this entry should look like?

View 3 Replies View Related

Debian Multimedia :: Bluetooth Phone File Browser / Cant See Or Access To Any File Or Folder Into The Phone?

Mar 1, 2010

I have a dell precision m4300 laptop with a 360 wireless bluetooth dell adapter On my system there is a debian lenny with kde3 and backported enable(everythings is p to date except bluez-utils and bluetooth holded at version 3.36-3)

Nowadays bluetooth more less works fine, I can send and receive single file to/from my phone (nokia n70)

The hell begin when I try to browse my phone files from konqueror...with bluetooth:/ I can see the list of all the device near me with sdp://[address]/ i can see two icons (obex file transfer & obex object push)
but I cant see or access to any file or folder into the phone.

I also try to update my bluez-utils to 4.60-1~bpo50+1 but in this case kbluetooth totally fail and a see the contextual menu of the system tray icon all disaled.

View 1 Replies View Related

Ubuntu :: Add A Network Folder To The UNR Files And Folers Menu Screen

Feb 25, 2010

I would like to add a network folder to the UNR Files & Folers menu screen.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved