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.

Filter by
Sorted by
Tagged with
85 votes
3 answers
7k views

VIMRC, SCREENRC, BASHRC, KSHRC, etc. What does the "RC" mean?

In these and other applications what does the "RC" stand for?
Cheng's user avatar
  • 1,453
84 votes
13 answers
195k views

How to make WSL run services at startup

After searching this site and various Q, it is clear that services and systemd is not available for WSL. I need to run a program in WSL every time I start my PC so I read this page on how to use ...
seanbw's user avatar
  • 983
76 votes
3 answers
582k views

Chmod to allow read and write permissions for directory

I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a ...
chrisg's user avatar
  • 863
72 votes
6 answers
194k views

Good block size for disk-cloning with diskdump (dd)

I use dd in its simplest form to clone a hard drive: dd if=INPUT of=OUTPUT However, I read in the manpage that dd knows a blocksize parameter. Is there an optimal value for the blocksize parameter ...
Phi's user avatar
  • 843
64 votes
3 answers
98k views

How to show output on terminal and save to a file at the same time?

I am using: user@unknown:~$ sudo command -option > log to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible? I am using ...
fazpas's user avatar
  • 1,603
59 votes
4 answers
29k views

Can't rename a file the name of which starts with a hyphen

I'm trying to rename a file with a hyphen at the beginning of its name and both this: mv -example-file-name example-file-name and this: mv '-example-file-name' example-file-name result in: mv: ...
Desmond Hume's user avatar
  • 2,590
58 votes
5 answers
28k views

Linux equivalent command for "open" command on Mac/Windows?

Coming from Mac OS X, you can type: $ open yourfilehere.txt and your file will open just as if you had opened it from Finder. On Windows, one can type: > start yourfilehere.txt and it will ...
jweede's user avatar
  • 6,863
57 votes
8 answers
63k views

How to do Rsync-like encrypted backup?

I want to save a backup of my data on a remote server, but never want the backup server to see the data unencrypted. Editing a single file and backing up should not result in everything being ...
user avatar
56 votes
8 answers
141k views

How to list folders using bash commands?

Is there any way to list just the folders in a directory using bash commands? ( as the ls command lists all the files and folders )
SpiXel's user avatar
  • 969
53 votes
10 answers
167k views

How to convert Word (doc) to PDF in linux?

I have a set of files in .doc format, that need to be converted to .pdf format. I am using Ubuntu linux.
user avatar
53 votes
5 answers
44k views

Sudo vs root; any actual differences?

I'm working with a support member for a product, and he insists that I need to be root to install a series of patches, and that sudo won't work; he doesn't provide a reason but seems very firm in his ...
Ranger's user avatar
  • 703
51 votes
4 answers
154k views

How to create a bootable USB from a bootable ISO with the command line on Linux?

I have a CD that's created from an ISO file which I use to install a custom version of Ubuntu via plop linux. The cd works fine but I'd like to use a bootable USB drive instead. I used the command dd ...
greggmi's user avatar
  • 1,275
50 votes
9 answers
136k views

How to automatically restart a linux background process if it fails?

I have a process which is executed by init.d script on the background. Eg: case "$1" in start) /bin/myprocess & stop) killall myprocess restart) killall ...
Honza's user avatar
  • 603
45 votes
7 answers
131k views

How to automatically run commands on SSH login?

Whenever I login to my Linux server I'd like to have several commands run automatically (set some variables, change location, etc.) This needs to be done on user login, not on system start. How can ...
Alasdair's user avatar
  • 857
43 votes
4 answers
32k views

Is there a tool that can detect (and if possible, fix) glitches in MP3 files? [closed]

My collection contains some MP3s which have some glitches like: displaying the wrong duration on loading minor jumps suddenly ending despite the duration claims another minute remaining noise I'm ...
Tobias Kienzler's user avatar
41 votes
7 answers
159k views

VBox Guest Additions ISO can't be mounted because of VERR_PDM_MEDIA_LOCKED

I am trying to run the command sudo mount -t vboxsf SharedUbuntuWindows SharedUbuntuWindows but I get the error unknown filesystem type 'vboxsf' on my guest Ubuntu machine. I am following these ...
icu222much's user avatar
40 votes
3 answers
53k views

How to create an uncompressed AVI from a series of 1000's of PNG images using FFMPEG

How can I create an uncompressed AVI from a series of 1000's of PNG images using FFMPEG? I used this command to convert an input.avi file to a series of PNG frames: ffmpeg -y -i input.avi -an -...
user avatar
40 votes
4 answers
7k views

Can history files be unified in bash?

I routinely run multiple screen sessions on my Linux desktops and servers. A problem with this is that when I grep through my command history, I find I issued a command in a different session, and ...
warren's user avatar
  • 10.1k
39 votes
3 answers
61k views

How to change console keymap in Linux?

I'd like to exchange Esc and CapsLock in console (not in X, and use xev), how can I do it? My OS is Ubuntu.
Vayn's user avatar
  • 501
39 votes
6 answers
48k views

Choice of filesystem for GNU/Linux on an SD card

I have am embedded ARM-based system running on an SD card. It's currently Debian GNU/Linux using ext3 as filesystem. As I'm about to reinstall the system, I started wondering about changing to a more ...
gspr's user avatar
  • 558
38 votes
3 answers
28k views

How to remap keys under Linux for a specific keyboard only

I've recently bought a Unicomp keyboard that comes with swapped right-alt and Windows keys. The keyboard identifies like this on lsusb: Bus 003 Device 002: ID 17f6:0822 Unicomp, Inc Is there a way ...
FUZxxl's user avatar
  • 536
37 votes
4 answers
17k views

How does WSL/WSL2/WSLg work without systemd?

As I've understood it, systemd is Linuxes' "master"-daemon, managing all other processes right after it has been started up and run its init-function. Since I had this (now resolved) issue, ...
Caeleste's user avatar
  • 821
35 votes
9 answers
79k views

What is the equivalent to the Linux File command for windows?

Running the command: file run.sh Gives me: run.sh: Bourne shell script text executable in Linux. Is there an equivalent command in Windows?
AabinGunz's user avatar
  • 611
34 votes
3 answers
66k views

Using Samba to share a folder from a Linux guest with a Windows host in VirtualBox

I would like to share a folder from a Linux Guest with a Windows host (with read and write access if possible) in VirtualBox. I read in these two links: here and here that it's possible to do this ...
Amelio Vazquez-Reina's user avatar
34 votes
2 answers
12k views

How do I recover a form in Firefox *without* installing a plugin? [duplicate]

Possible Duplicate: How to recover form information for a webpage in Firefox I typed a couple of paragraphs on a discussion board, but when I clicked the submit button, the site was undergoing (...
Joey Adams's user avatar
  • 2,288
30 votes
2 answers
50k views

Mounting HFS+ partition on Arch Linux

I'm having some problems with mounting an hfs+ partition on Arch Linux. When I run sudo mount -t hfsplus /dev/sda2 /mnt/mac I get this error: mount: wrong fs type, bad option, bad superblock on /dev/...
ZuluDeltaNiner's user avatar
30 votes
2 answers
12k views

combining SSD and hard disk in software RAID1?

Does it make sense to build a Linux software RAID-1 (mirroring) using an SSD and a normal hard disk? I want to combine the advantages of SSD (fast transfer rates, fast access times) with the ...
oliver's user avatar
  • 500
30 votes
4 answers
24k views

How to install VIM on Linux when I don't have root permissions?

I've got some troubles when I try to install Vim on Linux while I don't have a root account. The error information is shown below: How can I solve this? Can I install it in another directory other ...
SpawnST's user avatar
  • 2,371
29 votes
4 answers
3k views

How to create a file which is named like a command line argument?

I was wondering how to make a file named as a flag, e.g., if I wanted to make a folder named -a, what commands would do the trick? I tried mkdir '-a', mkdir \-a, and neither worked. I'm on Ubuntu.
MYV's user avatar
  • 1,183
28 votes
7 answers
81k views

Swap partition size for 4GB RAM

I'm planning to install Ubuntu 9.04 version. How much space should I dedicate for swap partition. I remember setting it to double the RAM size when I installed long back. At that time my RAM was 256 ...
softwarematter's user avatar
26 votes
8 answers
36k views

How do I extract an ISO on Linux without root access

I have a large ISO file on a server, and I need to access the file in it, without having root access. Thus, I can't simply mount it. What should I do to be able to extract an ISO on LInux without root ...
user avatar
25 votes
5 answers
7k views

Search for a text pattern in linux

I'm a linux newbie. I need to search for a string "teststring" in all *.java files coming under /home/user1/ (including subfolders). How can I do it in linux via shell command.
softwarematter's user avatar
24 votes
3 answers
76k views

How to move a partition in GNU/Linux?

How to move a partition to the beginning of the disk a bit? Parted wants a filesystem for some reason (I don't know why), I want just to shift all sectors left... r@l:15:32:45:~# parted /dev/sdb GNU ...
Vi.'s user avatar
  • 17.2k
24 votes
6 answers
22k views

Save multiple gnome-terminal layout?

I have multiple gnome-terminal windows open. Is there a way to save the settings (window position, no. of tabs, title etc). across OS reboots ?
Abhinav's user avatar
  • 2,050
23 votes
5 answers
69k views

Cannot remove Micro SD card's read-only attribute after Ubuntu image

I can't remove the read-only attribute from a Kingston 32 GB Micro SD Card. I want to wipe clean the whole card. I was given a Raspberry Pi 3 and a 32 GB Micro SD Card and an Echo to play around with....
LordScrat's user avatar
  • 339
22 votes
3 answers
38k views

How to Combine find and grep for a complex search? ( GNU/linux, find, grep )

I'm trying to do a text search in some files that share a similar directory structure, but are not in the same directory tree, in GNU/Linux. I have a web server with many sites that share the same ...
Petruza's user avatar
  • 3,873
21 votes
4 answers
29k views

ERROR: cuvid requested, but not all dependencies are satisfied: cuda/ffnvcodec

I am trying to compile FFMPEG with Nvidia Cuda support, on Debian 9.3. Parameters, what I am using: --enable-cuda --enable-cuvid --enable-nvenc --extra-cflags=-I/usr/local/cuda/include --extra-...
Netheme's user avatar
  • 324
20 votes
1 answer
62k views

What does NOEXEC flag mean when mounting directories on RHEL?

I am trying to understand the NOEXEC flag when mounting. I am having an execution issue within the /tmp directory on someone elses machine that I cannot access atm where the /tmp directory is mounted ...
user972276's user avatar
20 votes
5 answers
36k views

How to monitor BTRFS filesystem raid for errors?

I saw some documentation on a daemon that can execute a program/script for various BTRFS events, but I cannot find it anymore. How can I have a script/program be executed on a drive failure for a ...
Ioan's user avatar
  • 561
18 votes
11 answers
97k views

How can I automatically copy files to a USB drive when I connect it to my computer?

I am looking for a solution for copying all the files from a specific directory on the hard drive, to a specific directory on a USB memory device, once this device is connected. I have a program that ...
daphshez's user avatar
  • 733
18 votes
4 answers
34k views

How I can make sudo session an hour and not few minutes in Ubuntu 10.04?

How I can make sudo Ubuntu 10.04 session an hour and not few minutes? Now I have to write my password for sudo commands every few minutes.
Ben's user avatar
  • 1,377
17 votes
3 answers
26k views

How to bulk-rename files with invalid encoding or bulk-replace invalid encoded characters?

I have a debian server and I'm hosting music for an internet radio station. I have trouble with file names and paths because a lot of files got an invalid encoding, for example: ./music/Bändname - ...
q9f's user avatar
  • 1,162
16 votes
3 answers
23k views

How to delete file with this name on linux: -]???????q [duplicate]

Somehow a file named -]???????q got created on my terminal. I tried rm -f "-]???????q" (in double quotes), but it did not get deleted. (Error:: rm: invalid option -- ]). How do I delete it?
user avatar
16 votes
5 answers
55k views

Can't kill a sleeping process

I don't seem to be able to kill -9 a process which is in an interruptible sleep (S) state: [root@jupiter ~]# ps -elf | grep yum 4 S root 16790 1 0 75 0 - 73779 - Jan15 ? 00:00:...
del's user avatar
  • 532
16 votes
6 answers
27k views

Adjust screen brightness automatically at night

Can anyone tell me how to automatically dim my monitors when it gets dark at night?
Nifle's user avatar
  • 34.4k
16 votes
2 answers
3k views

Where is a typical Linux program installed

I mean not just the binary, but its libraries, config files and data (strictly speaking all files). Also when I download a package where is it best to extract it. If I move these files will the app be ...
Tihomir Mitkov's user avatar
16 votes
3 answers
15k views

Script or launcher to setup multiple terminal tabs in different locations

I have already studied this some time ago, but did not find any solution that would open terminal tabs, run some commands and then allow me to continue using those terminal tabs. All the ways I found ...
user232548's user avatar
15 votes
1 answer
71k views

How can I get multiple video cards to work on linux?

I installed fedora 12. I have 2 ATI cards that I used to use on windows to run 4 monitors. A recurring problem has been to get them detected in linux. Only my secondary card is picked up linux. When ...
JoshRibs's user avatar
  • 1,271
15 votes
2 answers
19k views

Directly connect MacBook to Linux desktop via ethernet for fast SSH?

I am looking at building a Linux desktop—desktop only; no monitor support—and getting a MacBook Pro as my main computer for mobility. I would like—while I am at the office—to basically use my MacBook ...
drjrm3's user avatar
  • 1,496
14 votes
1 answer
3k views

Why Windows needs reboot a lot more than Linux?

I use both Ubuntu and Windows XP. One thing that catches my attention for a long time is the high need for reboots in Windows. Most of the time when I install a program, Windows requests to reboot ...
kolistivra's user avatar

1
3 4
5
6 7
81