Most Popular

1500 questions
76
votes
9 answers

How to bind USB device under a static name?

I have an Arduino which sometimes gets bound to /dev/ttyUSB0 and other times to /dev/ttyUSB1, making my script fail. I do not want to enumerate all the possibilities of where my device could be, but I'd rather have it be bound somewhere static, e.g.…
k0pernikus
  • 15,463
76
votes
12 answers

find searching in parent directories instead of subdirectories

I'm nested deep in a file tree, and I'd like to find which parent directory contains a file. E.g. I'm in a set of nested GIT repositories and want to find the .git directory controlling the files I'm currently at. I'd hope for something like find…
76
votes
8 answers

Bluetooth won't turn On on Ubuntu 20.04

I recently installed ubuntu 20.04 and bluetooth seemed to work out-of-the-box. Yesterday, it stopped working with no known reason. I can turn it ON but the settings still show it to be OFF. I tried the following: $ sudo -i $ rfkill list 0: phy0:…
Pe Dro
  • 1,459
76
votes
6 answers

How do I cycle through panes inside a window in tmux like in screen?

I thought Moving tmux pane to window was the same question but it doesn't seem to be. Coming from using GNU screen regularly, I'm looking for tmux to do the same things. On of the things I do regularly is have a couple of different windows open,…
FooBar
  • 863
  • 1
  • 7
  • 7
76
votes
7 answers

Can I change the font of the text-mode console?

I have a Unix-like OS installed without a windowing environment; i.e., just a text-mode console and no GUI. Is it possible to change the font used by the console? To be clear, I am not talking about the terminal emulator that comes with a desktop…
Weihang Jian
  • 1,227
76
votes
11 answers

A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to: remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as the display is plugged in, with no need to muck…
76
votes
12 answers

Make `rm` move to trash

Is there a Linux script / application which, instead of deleting files, moves them to a special “trash” location? I’d like this as a replacement for rm (maybe even aliasing the latter; there are pros and cons for that). By “trash” I mean a special…
76
votes
7 answers

How do I upgrade all of my installed packages in OpenWRT?

I'm just wondering what is the equivalent of apt-get upgrade apt upgrade yum update with OpenWRT or LEDE?
Evan Carroll
  • 30,763
  • 48
  • 183
  • 315
76
votes
2 answers

dmesg: read kernel buffer failed: Permission denied

Since recently Debian has changed the default behavior for dmesg and I cannot use it simply from my local user. % dmesg dmesg: read kernel buffer failed: Operation not permitted Same goes for: % cat /dev/kmsg cat: /dev/kmsg:…
malat
  • 3,032
76
votes
7 answers

Tell fs to free space from deleted files NOW

Is there a way to tell the kernel to give back the free disk space now? Like a write to something in /proc/ ? Using Ubuntu 11.10 with ext4. This is probably an old and very repeated theme. After hitting 0 space only noticed when my editor couldn't…
Marcos
  • 2,305
76
votes
6 answers

What is the equivalent of Active Directory on Linux

I have a couple of machines at home (plus a number of Linux boxes running in VMs) and I am planning to use one of them as a centralized file server. Since I am more a Linux user rather than a sysadmin, I'd like to know what is the equivalent of,…
Pablo
  • 2,545
  • 6
  • 27
  • 24
76
votes
3 answers

Server admin sent me a private key to use. Why?

I'm supposed to be accessing a server in order to link a company's staging and live servers into our deployment loop. An admin over on their side set up the two instances and then created a user on the server for us to SSH in as. This much I'm used…
Toby
  • 783
76
votes
1 answer

Why a "login" shell over a "non-login" shell?

I have a basic understanding of dotfiles in *nix system. But I am still quite confused about this Difference between Login Shell and Non-Login Shell? A bunch of different answers (including multiple duplicates) have already addressed the following…
Allen
  • 985
76
votes
3 answers

Using "find" non-recursively?

Using /bin/find /root -name '*.csv'…
DeepSpace
  • 979
76
votes
7 answers

Crontab never running while in /etc/cron.d

Here's what I did on Debian Jessie: install cron via apt-get install cron put a backup_crontab file in /etc/cron.d/ However the task is never running. Here are some outputs: /# crontab -l no crontab for root /# cd /etc/cron.d &&…
Jivan
  • 899
1 2 3
99
100