Let me redo this, I was accessing a sever via ssh, i can access the server easily from my system (the server is in my local network). I tried copying a file from my local system to my server and it failed due to an error (permission denied). And now I do not want to dig whats wrong and instead want to get that file(which is on my system) from my server directly to which I am ssh'd into.  Old questions: /* I am using scp as a root, tried all the things but unable to copy files from my system to the remote server (to which I am logged-in via ssh from the same system). Let say i want to get the files from my system while being on ssh'd server, how do i do it.*
It's driving me nuts! I just want to transfer one simple file from laptop to server.  I'm using ubuntu on both machines.  So I have:  -rwxr-xr-x 1 sandro    414622 2011-10-14 23:42 sandrophoto-html.tar.gz   And I'm sending it using:  sudo scp -P XXXX sandrophoto-html.tar.gz usern@server.local:/media/xx/xx/xx   And I get: scp: /media/xx/xx/xx/sandrophoto-html.tar.gz: Permission denied  p.s. I might be doing this other way around - I want to send file tar.gz that is located on my desktop, to remote server into the folder /media/yadayda
How to prove that $P \rightarrow Q$ is equivalent with $\neg P \lor Q $? In my book about Logic, which is called 'Language, Proof and Logic', by the way, there is explained that the conditional $ P \rightarrow Q $ is equivalent with $\neg P \lor Q$.   that gives as answer: 'just compare the truth tables and you can see that they are equivalent'. However, I would like to know how to prove this using formal propositional logic. This should be possible, right? Loading OpenStreetMap data in QGIS? I have an Excel file containing data collected over many years as latitude and longitude coordinates for archaeological sites. How can I import it into QGIS as a new layer? I am learning basics of the category theory (CT).  I do understand that CT is a modern powerful framework to describe various branches of mathematics in a unified way.  I do admit that category's definition tells a lot about the whole thing and focuses on the most important properties, shadowing unnecessary details. However, the more I go forward, the more it feels like it should explicitly require a notion of morphisms equality (like it does with morphism composition). It feels so because equality or inequality of morphisms arises everywhere, since the very beginning: any commutative diagram eventually reduces to an equality of two different paths and many other things involve equality as well. Even composition is defined grounding upon an (implicit) equality!  I'll try to give an example of my concern. Consider $\mathbb{SET}$. Its objects are sets and morphisms are functions. Now, let's recall that functions are sets as well - to be more precise, a function $f : A \mapsto B$ is a subset of a $A \times B$ obeying certain properties, which I omit. Thus, one could argue that $f$ is both a morphism between objects $A, B \in Obj(\mathbb{SET})$ and an object defined as a set of pairs $\{ (a_1 \in A, b_1 \in B), ..., (a_n \in A, b_n \in B) \}$ and those are equal because both are essentially exactly the same thing.  I hope my concern is clear and I need some kind of "conceptual insight" from knowledgeable people to move forward. Please give me the right perspective. What do 'real', 'user' and 'sys' mean in the output of time(1)? $ time foo real        0m0.003s user        0m0.000s sys         0m0.004s $   What do 'real', 'user' and 'sys' mean in the output of time?  Which one is meaningful when benchmarking my app? Having trouble with Windows XP Read Only Settings on a folder I am having trouble with a folder that needs to be read-write for iTunes to open. For a while it was read-write, but it seemingly inexplicably changed to read-only now. When I try to change it back from that, it says it does it, but as soon as I try to open iTunes or the properties for the folder it will be listed as read-only again.  If anyone knows how I can change the folder from read-only so that it will be permanently read-write it would be incredibly helpful.  How can one change the properties of a file/folder from read-only to read-write in Windows XP? How to change default window background color in Windows 10? I just did a clean install of 20.04 and I noticed that no key shortcuts for files manipulation work when my focus in on Desktop (not in Nautilus).   When I have copied a file to clipboard, I cannot Ctrl+V it to Desktop, when I click on a file on Desktop, I cannot Ctrl+C it, or I cannot Delete it with keys. Only ways to do it is either navigate to the Desktop folder in Nautilus, or right-click the file on the Desktop and copy/move to trash/paste...  Sorry if I'm missing something obvious, all the key shortcuts worked normally for me in 18.04. Is a clean install better than upgrading? Is it better to install Ubuntu completely new or is the upgrade process just as good? In other words, will my computer run just as problem-free and efficiently when I upgrade as opposed to a fresh install? Baking with oven without bottom heating element My mom wants to do baking but her oven doesn't have bottom heating element. It only has an element on top, with a fan at the back.  She told me that she can't make me a good pizza or cake without it.  Is there any way around? I don't understand an answer. Should I add a comment, or post a new question? I recently (today) asked a question that received what seems to be a clear, concise answer, but one that's beyond my ability to understand (I'm at the cut-and-paste stage with JavaScript, and the answer seems to assume more knowledge than I actually have).  Is it considered better to ask follow-up questions as comments to the answer given, or should I post "fresh" questions to Stack to help me understand the answer that's been given? Can a US citizen leave and enter the US using a foreign passport? I am a dual citizen. I have both a US passport and a non-US passport. I live in the US. My US passport is currently being processed for renewal. I am unsure whether I will receive my passport in time for a trip that I have scheduled. Could I use my non-US passport to leave the US and return? I have never entered the US with my non-US passport. There is no immigration leaving the US but I still need to scan my passport for ticketing. Will the airline refuse me a ticket? I know that in this situation returning with a non-US passport can be problematic as well, but will I be able to leave at all? Note that I am traveling to a country which neither of my passports are from. So it looks like Stack Exchange now supports HTTPS (to some extent). Which is awesome! But there are a few problems, the main one being that some content is delivered over the CDN, which is plain HTTP. This causes browsers to complain about "unsecured content": Why should I put a ~ before \ref or \cite? My question is in the title of this post, but extends to other referencing commands like \eqref, \citep, \citet (and the like) as well. Proof by induction on a rooted tree with even number of vertices Let $T = (V, E)$ be a rooted tree with an even number of vertices. Prove by induction that there exists a set of edges $S \subseteq E$ such that every $v \in V$ is incident with an odd number of edges in $S$.  I was wondering if my argument is sufficient to prove the statement above:  Base case: $|V|=2$, there is only 1 edge and both vertices are incident with 1 edge $-&gt;$ $S \subseteq E$.  Inductive step:  Let $|V|&gt;2$, implying that $T$ has at least 2 external vertices. Let us choose two arbitrary external vertices $w,u \in V$. Such vertices are only incident to 1 edge each, $e_w$ and $e_u$. We can say that $e_w,e_u \in S$.   By induction, there exists a set $S$ in $T'=T-\{w,u\}=(V',E')$ such that every $v \in V'$ is incident with an odd number of edges in $S$ because removing 2 vertices from a tree with an even number of vertices maintains the property $|V|=2n$. No room for a new \dimen Is it possible for a foreigner to drive through (mainland) China in a foreign-registered car? Is it possible to drive through mainland China, for example for transit from Kazakhstan to Vietnam, as a non-Chinese citizen, in an own car/van/truck?  This is about an European Union citizen, trying to make a tourist trip overland by car from the EU to Vietnam. This is about a special (equipped with sleeping, cooking and other facilities) vehicle, that the owner intends to keep and use in Vietnam, so buying/renting a vehicle inside China and selling it before leaving is not an option - the question is about driving a specific vehicle the owner already has in the EU to Vietnam. getting new licence plates is OK, as long as it is allowed to put back the old ones when the vehicle gets back to the EU.  What legal issues are there with getting in an own car over China, and how to overcome them?  Is it possible to drive a car with EU licence plates through China, or would one have to get something like temporary Chinese plates? Is an EU driving licence valid? Are there any customs issues one has to know about, and how long one can keep a foreign motor vehicle in China without having to pay import taxes on it? What Topology does a Straight Line in the Plane Inherit as a Subspace of $\mathbb{R_l} \times \mathbb{R}$ and of $\mathbb{R_l} \times \mathbb{R_l}$ Given a straight line in the plane, what topology does this straight line inherit as a subspace of $\mathbb{R_l} \times \mathbb{R}$ and as a subspace of $\mathbb{R_l} \times \mathbb{R_l}$, where $\mathbb{R_l}$ is the lower limit topology?  So trying to figure this out definitely made my brain hurt.  I believe that as a subspace of $\mathbb{R_l} \times \mathbb{R}$, all non-vertical straight lines just inherit the lower limit topology $\mathbb{R_l}$, while vertical lines inherit the standard topology on $\mathbb{R}$.  As for $\mathbb{R_l} \times \mathbb{R_l}$, as far as I can tell, the only difference is that now all straight lines, including vertical ones, inherit the lower limit topology.  My reasoning was basically that for $\mathbb{R_l} \times \mathbb{R}$, open sets on the line all have an initial left end point, since the x-coordinate of this left end point is always captured by the open sets [a,b) in $\mathbb{R_l}$, and this in turn drags the y-coordinate of the initial left end point along for the ride (so to speak).  This is true in all but the vertical line case where there is no shift in the horizontal direction and thus the topology is inherited strictly from $\mathbb{R}$.  As for $\mathbb{R_l} \times \mathbb{R_l}$ it's basically the same argument except now the vertical lines inherit from $\mathbb{R_l}$ as well.  Can someone let me know whether I've reasoned correctly?  Thanks. Why do I see a double variable initialized to some value like 21.4 as 21.399999618530273? gedit "cannot open display" , on remote computer , using ssh - Ubuntu 12.04 Possible Duplicate:          I am getting the following error message when using ssh to log into a remote machine:      gedit: cannot open display   I am using ssh in - Ubuntu 12.04.