Questions tagged [linux]
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
58,800
questions
118
votes
3
answers
202k
views
List files bigger than filesize specified
How can I make ls (or any other command) list only files bigger than a specific file size?
118
votes
11
answers
62k
views
Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux
When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors:
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended ...
118
votes
4
answers
110k
views
How to add a command in vim editor?
If suppose my source code file name is "foo.c".
While editing and debugging i always execute this command:-
:!gcc -g foo.c -o foo;gdb foo
Can I add a custom command to Vim such that If i type ":...
117
votes
1
answer
64k
views
Why are there many processes listed under the same title in htop?
Can anyone explain to me why there are sometimes 10 or 15 processes with the same title and "stats" listed in htop? I'm guessing there are multiple threads running - but that many of them obviously ...
116
votes
13
answers
306k
views
How to create a video from images using FFmpeg?
Is it possible to use ffmpeg to create a video from a set of sequences, where the number does not start from zero?
For example, I have some images [test_100.jpg, test_101.jpg, test_102.jpg, ..., ...
116
votes
6
answers
61k
views
How to: Unlimited Bash/shell history?
Is there a way to define an unlimited history in Bash ?
116
votes
2
answers
275k
views
What is $* and $# in Linux?
What do the following environment variables in Linux mean?
What is $* (dollar sign followed by an asterisk)?
What is $# (dollar sign next to a hash mark/number sign/octothorpe/pound sign)?
115
votes
3
answers
638k
views
How to upload local file to server through Linux terminal
I am trying to upload local files to server by using Putty or SSH but not getting upload there.
Is there any direct method to upload file from local to server from Linux terminal without using FTP ...
115
votes
5
answers
168k
views
Check if any of the parameters to a bash script match a string
I'm trying to write a script where I want to check if any of the parameters passed to a bash script match a string. The way I have it setup right now is
if [ "$3" != "-disCopperBld" -a "$4" != "-...
115
votes
1
answer
129k
views
Remove single file from zip archive on Linux
I have a zip archive (created automatically in a script with -j -r flags) and I would like to remove a single file from it. I tried as documented.
zip -d "picture_43_9.jpg" gallery.zip
but I get ...
115
votes
4
answers
153k
views
How to copy symlinks to target as normal folders
i have a folder with symlinks:
marek@marek$ ls -al /usr/share/solr/
razem 36
drwxr-xr-x 5 root root 4096 2010-11-30 08:25 .
drwxr-xr-x 358 root root 12288 2010-11-26 12:25 ..
drwxr-xr-x 3 root ...
114
votes
10
answers
308k
views
Play MP3 or WAV file via the Linux command line
I would like to make an alarm system backed by a Ubuntu (no graphical interface) box, which plays various announcement and alarm audio tracks (.mp3 or .wav) via the command line.
For example:
$ root&...
110
votes
9
answers
121k
views
On Linux/Unix, does .tar.gz versus .zip matter?
Cross-platform programs are sometimes distributed as .tar.gz for the Unix version and .zip for the Windows version. This makes sense when the contents of each must be different.
If, however, the ...
110
votes
10
answers
105k
views
How can I diff two XML files?
On Linux, how could I generate a diff between two XML files?
Ideally, I would like to be able configure it to some things strict, or loosen some things, like whitespace, or attribute order.
I'll ...
110
votes
7
answers
240k
views
How to remove a symbolic link to a directory?
I am using Ubuntu 8.10, Bash and I made a symbolic link with the following command:
ln -s ../test5
I want to remove it now but my rm fails:
rm -Rf test5/
rm: cannot remove `test5/`: Not a directory
...
110
votes
2
answers
124k
views
How can I use tar command to group files without compression?
I have a very large folder of 120,000+ files. and I need to move them to another location on my same machine (same partition).
I'd like to use the tar command to group them up as a single unit and ...
109
votes
6
answers
320k
views
OpenSSL missing during ./configure. How to fix?
I was trying to install node.js and found OpenSSL support missing during ./configure.
How can I fix it? Is it a mandatory step? Would the --without-ssl option fix the problem?
# ./configure
...
109
votes
6
answers
39k
views
When must I use #!/bin/bash and when #!/bin/sh?
When is #!/bin/bash more appropriate than #!/bin/sh in a shell script?
109
votes
5
answers
97k
views
How do I create a relative symbolic link in Linux?
I need a symlink that resolves relative to the directory it is placed in. What command is used to create such a thing?
109
votes
10
answers
400k
views
How to access a BitLocker-encrypted drive in Linux?
I have a laptop running Windows 7 Ultimate. I have encrypted my drives using BitLocker. Now I have also installed Lubuntu along with Windows. But my encrypted drives are not visible in Linux. How ...
109
votes
14
answers
126k
views
faster way to mount a remote file system than sshfs?
I have been using sshfs to work remotely, but it is really slow and annoying, particularly when I use eclipse on it.
Is there any faster way to mount the remote file system locally? My no.1 priority ...
108
votes
9
answers
186k
views
Opening a .msg file in Ubuntu [closed]
Someone sent me a .msg file on Skype, and somehow I just can't open this in Ubuntu.
Is there any app in which I could open the .msg file?
107
votes
5
answers
307k
views
Where is the temporary directory in Linux?
Does Linux have a standard temporary directory for general use, like Windows's C:\Temp folder? If so, where is it located? I found an SO question about finding a tmp directory programmatically, but I ...
106
votes
4
answers
479k
views
Checking what PHP version I'm running on Linux?
I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
105
votes
4
answers
65k
views
Convert a PDF to greyscale on the command line in FLOSS?
I have a colour PDF file, and I'm going to print it out and then photocopy it in black and white. I'd like to know what it's like in B&W before photocopying it. Is it possible to 'greyscale' a PDF ...
105
votes
4
answers
468k
views
How can I clear the IP address of Ethernet interface without cycling the interface up/down or restarting it
What is the Linux command to clear IP addresses of an interface without bringing it down and/or restarting network services?
Seems strange that ifconfig is able to change IP addresses but has no ...
105
votes
10
answers
114k
views
How to join/merge many mp3 files?
Searching Google on how to join/merge many mp3 files, it suggests that I should just cat them together.
That might "work", but clearly it is not the correct way to do it, as each header and set of ...
105
votes
4
answers
89k
views
Getting WGET to display a less verbose output
Is it possible to get WGET to only show download progress e.g. download bar, opposed to all of the connection info, as it does look a little ugly on the client side, is this possible to do?
104
votes
11
answers
303k
views
What is the Linux command to find out hardware info?
I need to find out hardware information for the below items under Linux:
CPU (and cores)
CPU speed
Memory
Hard disks
OS version
Any advice?
104
votes
3
answers
54k
views
What exactly is <() in bash (and =() in zsh)?
I'm pretty comfortable with bash, but recently I ended up in a substitution I didn't know.
What exactly is <(command) in bash?
How does it compare to the =(command) in zsh?
I understand that this ...
104
votes
9
answers
62k
views
What is the equivalent of Linux's "~" (tilde) in Windows?
In Linux, we can go to the user home by entering the tilde (~) character after cd:
cd ~
How to do the same in Windows?
Each time, I need to type:
cd C:\Document and Settings\freewind
That's too ...
104
votes
7
answers
79k
views
What happens if mv is interrupted?
What happens if the Linux mv command is interrupted? Say, I'm moving a whole directory to some other place and interrupt it while it's moving. Will the source directory still be untouched?
104
votes
8
answers
122k
views
How can I find the oldest file in a directory tree
I'm looking for a shell one-liner to find the oldest file in a directory tree.
103
votes
5
answers
97k
views
push/pop current directory?
With bash is there a way to push and pop the current working directory? I tried writing bash;cd dir; ./dostuff;exit; but the current directory is now dir.
103
votes
2
answers
8k
views
Delete entered password in hidden password prompt (Linux) with shortcut
Is there a way to delete all characters that I entered in a hidden password prompt in Linux? For example, when I SSH to a server, it asks for my password where the entered keys are not shown:
$ ssh ...
102
votes
6
answers
191k
views
How to update snap-store linux.. How to update this?
How to update snap-store .
I don't have Ubuntu advantage subscription.
102
votes
3
answers
115k
views
logrotate configuration file syntax - multiple wildcard entries possible?
Since the man page doesn't answer my question and I don't want to force a rotation cycle, I decided to ask the question here.
The man page for logrotate gives the following example:
"/var/log/...
101
votes
12
answers
172k
views
Best way to transfer files over a LAN between two Linux computers
I want to transfer files (a music folder) between two Linux computers. After searching for the best way to do this, I've seen that there are lots of ways of doing this. I know this has been asked a ...
101
votes
5
answers
380k
views
How to update Google chrome in Ubuntu?
How to update Google chrome in Ubuntu?
101
votes
8
answers
184k
views
How can I view results of my cron jobs?
I see so many guides on how to run crontab, but what I need right now is to learn how to
Find log files about cron jobs
Configure what gets logged
100
votes
3
answers
78k
views
Case Insensitive search from find command?
I am not able to figure out how can I do case-insensitive search using the find command.
I tried
find . -name -i pattern
And it does not work.
98
votes
3
answers
293k
views
Give write permissions to multiple users on a folder in Ubuntu
There is a folder that is owned by user tomcat6:
drwxr-xr-x 2 tomcat6 tomcat6 69632 2011-05-06 03:43 document
I want to allow another user (ruser) write permissions on document folder. The two users ...
97
votes
6
answers
187k
views
how to download dropbox files using wget command?
Seems I can only download dropbox files using explorer such as chrome and firefox. If I use wget to download, then I would get a file which is in html format. Why?
For example you can open this link ...
97
votes
18
answers
196k
views
Linux "Top" command for Windows Powershell?
I am looking for a PowerShell cmdlet that can provide similar functionality to the Linux Top app. Something that refreshes at some given interval and displays the process list with CPU % util.
I have ...
97
votes
2
answers
173k
views
How do I clear out the ssh-agent entries (on Mac OS X )?
I'm running Mac OS X, and it appears that after SSHing to several machines, using identity files, my 'ssh-agent' builds up a lot of identity / keys and then sometimes offers too many to a ...
97
votes
8
answers
125k
views
How can I recursively copy files by file extension, preserving directory structure?
At the Linux command line, I'd like to copy a (very large) set of .txt files from one directory (and its subdirectories) to another.
I need the directory structure to stay intact, and I need to ...
97
votes
5
answers
55k
views
Aptitude vs. apt-get: Which is the recommended (aka the "right") tool to use?
Some time ago I read that aptitude is the preferred tool for installation on Debian-based systems. But when you search around on how to administer a Debian-based system, then aptitude is rarely ...
96
votes
16
answers
129k
views
How to start GUI linux programs from the command line, but separate from the command line?
I've searched for this before, but have never been able to find an answer.
In Windows, if I have a console window open, type winmine, and press enter, Minesweeper will appear, completely separate ...
96
votes
2
answers
220k
views
How can I filter out unique results from grep output?
In linux, I can grep a string from a file using grep mySearchString myFile.txt.
How can I only get the result which are unique?
96
votes
5
answers
405k
views
How to chown/chmod all files in current directory?
I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this:
chown username:groupname .
...expecting that it would affect all the files ...