Most Popular
1500 questions
121
votes
9 answers
Creating a GIF animation from PNG files
Is there a tool to create a gif animation from a set of png files?
I tried the convert command from the ImageMagick suite, but this doesn't always succeed. Also, I have several issues with this:
I can't tell what the progress is.
No matter what I…
Yotam
- 2,684
- 6
- 29
- 32
121
votes
4 answers
How can I make a script in /etc/init.d start at boot?
I think I read something a while back about this, but I can't remember how it's done. Essentially, I have a service in /etc/init.d which I'd like to start automatically at boot time. I remember it has something to do with symlinking the script…
Naftuli Kay
- 38,686
- 85
- 220
- 311
121
votes
10 answers
Set the default kernel in GRUB
How can I pick which kernel GRUB 2 should load by default? I recently installed a Linux real-time kernel and now it loads by default. I'd like to load the regular one by default.
So far I only managed to pick the default OS... and for some reason…
TomTom
- 2,453
- 6
- 18
- 23
121
votes
7 answers
Convert file contents to lower case
I have temp file with some lower-case and upper-case contents.
Input
Contents of my temp file:
hi
Jigar
GANDHI
jiga
I want to convert all upper to lower.
Command
I tried the following command:
sed -e "s/[A-Z]/[a-z]/g" temp
but got wrong…
JigarGandhi
- 4,820
- 10
- 27
- 38
121
votes
10 answers
How to check which GPU is active in Linux?
I have 2 GPU's in my netbook. How do I know which one I'm actually using at any given moment?
LanceBaynes
- 39,295
- 97
- 250
- 349
121
votes
5 answers
Exclude one pattern from glob match
I have several files with the same base filename. I'd like to remove all but one
foo.org #keep
foo.tex #delete
foo.fls #delete
foo.bib #delete
etc
If I didn't need to keep one, I know I could use rm foo.*.
TLDP demonstrates ^ to negate a match.…
jake
- 1,407
- 2
- 11
- 11
121
votes
12 answers
Generate random numbers in specific range
After googling a bit I couldn't find a simple way to use a shell command to generate a random decimal integer number included in a specific range, that is between a minimum and a maximum.
I read about /dev/random, /dev/urandom and $RANDOM, but none…
BowPark
- 4,811
- 12
- 47
- 74
120
votes
13 answers
How to test what shell I am using in a terminal?
How to check what shell I am using in a terminal? What is the shell I am using in MacOS?
user5837
- 1,301
- 2
- 9
- 4
120
votes
5 answers
what's the purpose of ssh-agent?
I've read the official definition:
ssh-agent is a program to hold private keys used for public key authentication (RSA, DSA, ECDSA). The idea is that ssh-agent is started in the beginning of an X-session or a login session, and all other windows…
agent_smith
- 1,495
- 3
- 11
- 8
120
votes
13 answers
How to create SHA512 password hashes on command line
In Linux I can create a SHA1 password hash using sha1pass mypassword. Is there a similar command line tool which lets me create sha512 hashes? Same question for Bcrypt and PBKDF2.
student
- 17,875
- 31
- 103
- 169
120
votes
11 answers
How to find which processes are taking all the memory?
I'm looking for somthing like top is to CPU usage. Is there a command line argument for top that does this? Currently, my memory is so full that even 'man top' fails with out of memory :)
ripper234
- 31,063
- 43
- 82
- 90
120
votes
3 answers
SSH login with clear text password as a parameter?
I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I won't have access to (think continuous integration server like…
mmla
- 1,327
- 2
- 9
- 7
120
votes
7 answers
Can I safely remove /var/cache?
I am running out of disk space and noted that I have a large /var/cache directory. Can I safely remove this? (using Arch Linux, BTW).
user11780
120
votes
13 answers
ssh_exchange_identification: Connection closed by remote host (not using hosts.deny)
I'm not using hosts.allow or hosts.deny, furthermore SSH works from my windows-machine (same laptop, different hard drive) but not my Linux machine.
ssh -vvv root@host -p port gives:
OpenSSH_6.6, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading…
Torxed
- 3,567
- 7
- 27
- 44
119
votes
6 answers
How to download an archive and extract it without saving the archive to disk?
I'd like to download, and extract an archive under a given directory. Here is how I've been doing it so far:
wget http://downloads.mysql.com/source/dbt2-0.37.50.3.tar.gz
tar zxf dbt2-0.37.50.3.tar.gz
mv dbt2-0.37.50.3 dbt2
I'd like instead to…
BenMorel
- 4,447
- 8
- 36
- 46