Most Popular

1500 questions
82
votes
8 answers

List all available ssl ca certificates

My git client claims error: Peer's Certificate issuer is not recognized. That means it can not find the corresponding ssl server key in the global system keyring. I want to check this by looking at the list of all system wide available ssl keys on…
Jonas Stein
  • 3,898
  • 4
  • 34
  • 55
82
votes
7 answers

How safe is it to cat an arbitrary file?

Sometimes when I cat a binary file by mistake, my terminal gets garbled up. Nothing a quick reset can't fix, but couldn't an attacker theoretically create a file that, when displayed on a terminal, would execute some arbitrary code? Through an…
Gunchars
  • 911
  • 1
  • 6
  • 7
82
votes
15 answers

How to check progress of running cp?

Is it possible to check the progress of running cp process? Some processes respond to various KILL signals so that you can check what is their status. I know that I can run cp with parameter -v but what if forgot to do that, cp is running for a very…
Petr
  • 1,691
  • 4
  • 21
  • 31
82
votes
4 answers

Why would anyone choose not to use the lowlatency kernel?

I can't find any good information on the rt and lowlatency Linux kernels. I am wondering why anybody would not want to use a lowlatency kernel. Also, if anyone can tell what the specific differences are, that would be great too.
Startec
  • 1,839
  • 4
  • 24
  • 27
82
votes
6 answers

Disable user shell for security reasons

We have several user accounts that we create for automated tasks that require fine-grained permissions, such as file transfer across systems, monitoring, etc. How do we lock down these user accounts so that these "users" have no shell and are not…
Suman
  • 949
  • 1
  • 8
  • 8
82
votes
4 answers

When should I use a trailing slash on a directory?

Possible Duplicate: How linux handles multiple path separators (/home////username///file) Most commands I use in linux behave exactly the same whether I include the trailing slash / character on the end of a directory name or not. For example: ls…
Cory Klein
  • 18,391
  • 26
  • 81
  • 93
82
votes
1 answer

Which Fedora package does a specific file belong to?

In the Debian family of OSes, dpkg --search /bin/ls gives: coreutils: /bin/ls That is, the file /bin/ls belongs to the Debian package named coreutils. (see this post if you are interested in a package containing a file that isn't installed) What is…
tshepang
  • 64,472
  • 86
  • 223
  • 290
82
votes
7 answers

How can I convert a PNG to a PDF in high quality so it's not blurry or fuzzy?

There are a lot of questions out there about how to convert a PDF file to a PNG image, but I'm looking to take a nice sharp PNG file and just basically wrap it or embed it in a PDF file without having it look blurry or fuzzy. I realize with…
cwd
  • 44,479
  • 71
  • 146
  • 167
82
votes
7 answers

How to copy some, but not all files?

So, you can use the * as a wild card for all files when using cp within context of a directory. Is there a way to copy all files except x file?
Chad Harrison
  • 1,613
  • 3
  • 18
  • 21
82
votes
11 answers

Using sftp to Transfer a Directory?

When I try to use sftp to transfer a directory containing files, I get an error message: skipping non-regular file directory_name The directory contains a couple of files and two subdirectories. What am I doing wrong?
haziz
  • 2,231
  • 4
  • 26
  • 37
82
votes
1 answer

Why doesn't my systemd user unit start at boot?

I'm trying to create a systemd user unit and have it start when the system boots. The service does start manually, however it does not start at boot. From searching the Internet I learned that in order for user units to start at boot, I supposedly…
Michael Hampton
  • 8,658
  • 2
  • 31
  • 54
82
votes
3 answers

ESC key causes a small delay in terminal due to its Alt+ behavior

My terminal setup is gnome-terminal + tmux + zsh with vi bindings. In applications like vim or even in the zsh's command line vi editing mode, I need to frequently hit the ESC key but there is a small delay before the effects of this key take place.…
sharat87
  • 4,199
  • 4
  • 23
  • 17
82
votes
8 answers

List all RPM packages installed from repo "X"

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
Lorin Hochstein
  • 8,077
  • 17
  • 50
  • 56
82
votes
6 answers

Getting size with du of files only

How can I get the size of all files and all files in its subdirectories using the du command. I am trying the following command to get the size of all files (and files in subdirectories) find . -type f | du -a But this prints out the folder sizes as…
Shardul Upadhyay
  • 923
  • 1
  • 6
  • 5
82
votes
2 answers

Is it better to use $(pwd) or $PWD?

I encountered BASEDIR=$(pwd) in a script. Are there any advantages or disadvantages over using BASEDIR="$PWD", other than maybe, that $PWD could be overwritten?
Minix
  • 5,735
  • 8
  • 28
  • 45