Most Popular
1500 questions
177
votes
9 answers
Sorting down processes by memory usage
I am able to see the list of all the processes and the memory via
ps aux
and going through the VSZ and RSS
Is there a way to sort down the output of this command by the descending order on RSS value?

Exps
- 1,873
177
votes
17 answers
How can I do a 'change word' in Vim using the current paste buffer?
I have some text in my paste buffer, e.g. I did a yw (yank word) and now I have 'foo' in my buffer.
I now go to the word 'bar', and I want to replace it with my paste buffer.
To replace the text manually I could do cw and then type the new word.
How…

Michael Durrant
- 42,013
177
votes
12 answers
GUI for GIT similar to SourceTree
Is there a similar piece of software to SourceTree, a GUI for git, for Linux? I know about Giggle, git cola, etc. I'm looking for a beautiful, easy to use GUI for git.

Glen Solsberry
- 2,623
177
votes
6 answers
Copy-Paste in xfce4-terminal adds 0~ and 1~
I use xubuntu 14.04, 64 bit. Every now and then, when I try to paste some text in xfce4-terminal, instead of the expected text to be pasted, it is surrounded by 0~ and 1~, such as:
0~mvn clean install1~
The text is supposed to be mvn clean install…

botismarius
- 1,929
177
votes
2 answers
Bash - how to run a command after the previous finished?
Currently I have a script.sh file with the following content:
#!/bin/bash
wget -q http://exemple.com/page1.php;
wget -q http://exemple.com/page2.php;
wget -q http://exemple.com/page3.php;
I want to execute the commands one by one, when the previous…

drogy
- 1,771
176
votes
7 answers
How to move all files and folders via mv command
How can I move all files and folders from one directory to another via mv command?

Luka
- 2,117
176
votes
8 answers
Argument string to integer in bash
Trying to figure out how to convert an argument to an integer to perform arithmetic on, and then print it out, say for addOne.sh:
echo $1 + 1
>>sh addOne.sh 1
prints 1 + 1

user135986
- 1,769
- 2
- 11
- 3
176
votes
11 answers
How can I use ffmpeg to split MPEG video into 10 minute chunks?
There is often a need in the open source or active developer community to publish large video segments online. (Meet-up videos, campouts, tech talks...) Being that I am a developer and not a videographer I have no desire to fork out the extra…

Gabriel
- 1,863
176
votes
6 answers
What does '>/dev/null 2>&1' mean in this article of crontab basics?
I am reading an article about crontab
There is something about disabling automatically sending emails.
Disable Email By default cron jobs sends an email to the user account executing the cronjob. If this is not needed put the following
command…

AGamePlayer
- 7,605
176
votes
3 answers
Make all new files in a directory accessible to a group
Suppose I have two users Alice and Bob and a group GROUPNAME and a folder foo, both users are members of GROUPNAME (using Linux and ext3).
If I save as user Alice a file under foo, the permissions are: -rw-r--r-- Alice Alice. However, is it…

student
- 18,305
175
votes
11 answers
"no public key available" on apt-get update
When performing apt-get update, I get the following error:
root@ADS3-Debian6:/home/aluno# apt-get update
Atingido http://sft.if.usp.br squeeze Release.gpg
Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-en
Ign…

That Brazilian Guy
- 4,513
175
votes
1 answer
Bash: What does ">|" do?
I have just seen this written down;
$ some-command >| /tmp/output.txt
Vertical pipes are used in standard redirects "piping" the output of one command to another, is >| in fact completely useless as it would be the same as just > in this scenario?

Baldrick
- 7,652
175
votes
12 answers
Is CentOS exactly the same as RHEL?
I'm sure this question has been asked again and again elsewhere (I did not find anything specific to CentOS vs RHEL in SE), but I would still like to ask and confirm a few specific points.
I am well aware that CentOS removes all RH trademarks,…

Oxwivi
- 2,252
175
votes
5 answers
I deleted /bin/rm. How do I recover it?
Just for fun, I thought I would use this command on my Raspberry Pi running Raspbian:
sudo rm -f /bin/rm
I thought I could just reinstall coreutils: I was wrong!
apt-get install --reinstall coreutils gives an error from dpkg, saying it couldn't…

user60684
- 1,753
175
votes
6 answers
What's the meaning of a dot before a command in shell?
While following android eclipse debug tutorial, I encounter following commands.
cd /path/to/android/root
. build/envsetup.sh
lunch 1
make
emulator
My problem is what the dot before build/envsetup.sh means?

Jichao
- 1,977