Most Popular

1500 questions
126
votes
9 answers

Linux ls to show only filename date and size

How can I use ls in linux to get a listing of filenames date and size only. I don't need to see the other info such as owner or permission. Is this possible?
Pinkie
  • 1,363
  • 2
  • 9
  • 5
126
votes
7 answers

How to get whole command line from a process?

How can I get the command arguments or the whole command line from a running process using its process name? For example this process: # ps PID USER TIME COMMAND 1452 root 0:00 /sbin/udhcpc -b -T 1 -A 12 -i eth0 -p…
Michael
  • 1,583
  • 3
  • 13
  • 19
126
votes
6 answers

Why is setting a variable before a command legal in bash?

I've just encountered several answers such as to parsing a delimited text file... that use the construct: while IFS=, read xx yy zz;do echo $xx $yy $zz done < input_file where the IFS variable is set before the read command. I've been reading…
Mike Lippert
  • 1,365
  • 2
  • 10
  • 14
125
votes
4 answers

Reserved space for root on a filesystem - why?

I understand that by default, newly created filesystems will be created with 5% of the space allocated for root. I also know you can change the defined space with: tune2fs -m 1 /dev/sdXY What I'm curious about though, is what the actual purpose for…
suitedupgeek
  • 1,353
  • 2
  • 9
  • 7
125
votes
4 answers

tmux bottom status bar color change

I recently started to use tmux and like it much, but its green bottom bar is a bit distracting, is there a way to change its color? or a way to hide it?
Sam
  • 2,458
  • 5
  • 21
  • 28
125
votes
2 answers

How can I start the python SimpleHTTPServer on port 80?

I am using this command on Ubuntu but it is starting on port 8080 and I don't have another server running so I'd like it to start on port 80. I saw ways that you could set up a bash script to do something like this, but isn't there a command line…
cwd
  • 44,479
  • 71
  • 146
  • 167
125
votes
6 answers

Why is the Linux kernel 15+ million lines of code?

What are the contents of this monolithic code base? I understand processor architecture support, security, and virtualization, but I can't imagine that being more than 600,000 lines or so. What are the historic & current reason drivers are included…
Jonathan
  • 1,535
  • 2
  • 11
  • 17
125
votes
6 answers

Process substitution and pipe

I was wondering how to understand the following: Piping the stdout of a command into the stdin of another is a powerful technique. But, what if you need to pipe the stdout of multiple commands? This is where process substitution comes in. In…
Tim
  • 98,580
  • 191
  • 570
  • 977
125
votes
12 answers

ssh_exchange_identification: read: Connection reset by peer

I am on OS X trying to ssh into a ubuntu 12.04 server. I was able to SSH in -- until abruptly stuff stopped working. I've read online to use the -v to debug this. Output is shown below. If I ssh into a different box and then ssh from that box to the…
bernie2436
  • 6,505
  • 22
  • 58
  • 69
125
votes
3 answers

SSH: tunnel without shell on ssh server

I have to set up a tunnel between two hosts. For this I use ssh in this way: ssh -L MY_LOCAL_PORT:FOREIGN_ADDRESS:FOREIGN_PORT MYUSER@SSH_SERVER after that, I log in to my SSH_SERVER. How can I avoid this feature?! I have only to set up a tunnel. I…
Bau Miao
  • 1,473
  • 2
  • 11
  • 10
124
votes
3 answers

What does the Windows flag in the Linux logo of kernel 3.11 mean?

I've just installed kernel-3.11.0-1.fc20 for my Fedora 19 installation. During the rebooting progress, I saw the Linux logo with a Windows flag in it, what does it mean? The Fedora 19 is installed in an ASUS TX300CA notebook, secure boot is off,…
LiuYan 刘研
  • 3,910
  • 5
  • 31
  • 34
124
votes
20 answers

gpg asks for password even with --passphrase

I expect the following command to extract the gpg file without asking for password: gpg --passphrase 1234 file.gpg But it asks for the password. Why? This also have the same behavior: gpg --passphrase-file passfile.txt file.gpg I use Ubuntu…
Omid
  • 3,311
  • 8
  • 34
  • 40
124
votes
6 answers

How to properly and easily configure `xdg-open` without any environment?

I'm using OpenBox window manager without any desktop environment. xdg-open behaves strangely. It opens everything with firefox. $ xdg-settings --list Known properties: default-web-browser Default web browser I'm looking for a simple…
kravemir
  • 4,014
  • 4
  • 33
  • 48
124
votes
11 answers

How can I install the `ll` command on Mac OS X?

I'm using Mac OS X. When I SSH into servers I find the ll command useful, but it's not available on my local machine. How can I install it?
Eonil
  • 4,607
  • 11
  • 30
  • 30
124
votes
9 answers

On what systems is //foo/bar different from /foo/bar?

Throughout the POSIX specification, there's provision (1, 2, 3...) to allow implementations to treat a path starting with two / specially. A POSIX application (an application written to the POSIX specification to be portable to all POSIX compliant…
Stéphane Chazelas
  • 522,931
  • 91
  • 1,010
  • 1,501