Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

0
votes
0answers
4 views

All files created in directory should be owned by bob

I'm looking to have all files in a directory owned by bob. I'm aware I can chmod g+s to get the group set on new files but I don't think I can do anything like that for the user. This is what I've ...
2
votes
4answers
166 views
+50

High memory usage but no process is using it

I run free -m on a debian VM running on Hyper-V: total used free shared buffers cached Mem: 10017 9475 541 147 34 909 ...
0
votes
0answers
14 views

I cannot open up my flash drive

I have a flash drive that has a storage space of 8GB, a mark of ASA MANHATTAN. When I plug it in my computer, I get the following message: This location could not be displayed. Sorry, could not ...
1
vote
0answers
10 views

How should the `crypto` kernel parameter be passed?

I've encrypted a root drive using a cipher with this format: <cipher>-<chainmode>-<ivmode>:<ivopt>. Let's call this [CIPHER] for short. To boot from this device, certain ...
1
vote
2answers
832 views

Command/scripts to check the Reverse DNS Lookup time

I am working on a project in which one master communicates with numbers of slaves. For that it has to make connection with hosts in network. But sometimes it hangs. I think that the reason behind is ...
19
votes
2answers
41k views

How to use command line to change volume?

I am trying to control the volume using my programming script. How can I do the following in Fedora 15, Ubuntu linux? Mute/ Unmute Volume up and volume down Note: Please note that I use a web USB ...
0
votes
0answers
7 views

how to remove a RFL_SourceSumbission_20150901 - header .csv [duplicate]

I have created csv file like RFL_SourceSumbission_20150901 - header .csv. I am able to delete other csv files which created normaly but i am unable to remove RFL_SourceSumbission_20150901 - header ...
0
votes
0answers
10 views

MySQL Cluster node crashed, how to re-add in cluster?

We have 2 data node in mysql cluster, and one of them got crashed (totally). I have re-install new OS and now i want to re-add same node back to cluster. How to do that without re-starting whole ...
3
votes
4answers
301 views

8G RAM and SSD - how big should the swap be?

I have a computer with 8G RAM and a 128G SSD. I don't plan hibernating. What swap size would you recommend? Would you change any swappiness? In the nearest future I'll compile programs (or even ...
42
votes
3answers
98k views

Finding the PID of the process using a specific port?

I am installing hadoop on my Ubuntu system. When I start it, it reports that port 9000 is busy. I used netstat -nlp|grep 9000 to see if such a port exists and I got this: tcp 0 0 ...
40
votes
9answers
157k views

Unix/Linux undelete/recover deleted files

Is there a command to recover/undelete deleted files by rm? $ rm -rf /path/to/myfile How can I recover myfile? If there is such a tool how can I use it?
0
votes
1answer
21 views

Linux file system corruption due to improper shutdown (fs ext4)?

I have been managing many Linux servers, It is very easy to play with Linux servers than any other OS. But Sometime I encounter a problem with Linux OS is that, The file system corruption. This ...
3
votes
1answer
21 views

How can I get the amount of available memory portably across distributions?

The standard files/tools that report memory seem to have different formats on different Linux distributions. For example, on Arch and Ubuntu. Arch $ free total used free ...
1
vote
2answers
1k views

tkdiff error on Linux Redhat 5.5

I installed tkdiff as root, and it runs fine under that user, but when I switch to a local user I get the error: Application initialization failed: Can't find a usable init.tcl in the following ...
1
vote
1answer
27 views

linux unbuffered compression options

I'm working on a embedded system and due to persistent memory restrictions, I need to compress a log file "on the fly". My objective is to have a one liner inside a script, which would look like ...
2
votes
3answers
4k views

How to enable libass on Linux?

I tried to enable libass for ffmpeg with this --enable-libass in command but it didn't recognise the command. Does anyone know how to enable libass on Linux?
3
votes
2answers
23 views

kernel configs and dependencies

When a particular kernel config is turned on, e.g. CONFIG_CRYPTO_FIPS=y a bunch of other dependencies (CONFIG_XXX_YYYY) get turned on during compilation. Is there a way to know all the dependencies ...
0
votes
1answer
35 views

netstat shows over 44K connections without ip address, what's that?

I have a question about linux netstat usage and output results. I'm trying to solve a dilema about why my server is facing communications delays and bottle neck issues, So I started digging and ...
13
votes
1answer
13k views

Updating disk free size without rebooting the host

I use RHEL4 with LVM2 on it. At times even after removing large files more that a GB the partition size is not getting updated when is see using df command. -bash-3.00$ df -h Filesystem ...
0
votes
1answer
2k views

What variables are valid within /etc/default/useradd file?

My /etc/default/useradd file is as follow: # useradd defaults file GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes man page for useradd provides many ...
2
votes
2answers
46 views

USB flash drive formatted as “Linux Live CD” keeps the CD-ROM name after re-partitioning

I have an USB flash drive that I formerly used as installation medium for Linux Fedora. The stick still has the "Fedora Live USB" installation files on it. When I insert it into my olde laptoppe, it ...
3
votes
1answer
823 views

Can I use a parallel port as a CUPS input device?

I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect ...
0
votes
0answers
12 views

Create iso Frame buffer video [on hold]

How to create a ISO and only frame buffer video console? (Example: archlinux, fedora, debian, Ubuntu, etc)
1
vote
0answers
506 views

How to install AMD Catalyst 15.12 (fglrx 15.302) on Kali 2.0 (Sana)?

Previously I faced an issue installing Catalyzt 15.7 (fglrx 15.20.1046) on Kali Sana because of the whole /usr/lib and /usr/lib64 co-existing. Following the post How to install AMD Catalyst 15.7 ...
0
votes
1answer
31 views

Listing files with a certain extension

I'm suppose to write a command that would list all files that end in .tx with an optional t at the end. So far all I got is listing the files that end in .tx which is: ls *.tx Now my problem is ...
0
votes
1answer
56 views

High Availability of Services

I want to monitor a couple of services in linux. In case they go down I want to restart them. I'm writing a crontab which will get the name of the services using jps command every 60 seconds, and if ...
1
vote
2answers
137 views

View timestamp for CUPS print jobs

I'm looking for a way to view the timestamp of a job in CUPS. I've searched the man pages and can't seem to find it. The long term goal is to have a script that parses the time from the jobID and ...
0
votes
1answer
18 views

How can I configure the serial port under debian 8.3 on HP Server?

If there is no Monitor I can access via the serial RS-232 port on Debian/GNU/Linux 8.3! How can I configure the serial port under Debian 8.3. It should be possible already during the boot from Debian ...
1
vote
0answers
14 views

How to programmatically change a password on an IPSwitch server using a Linux client?

One of my companies customers runs an IPSwitch sftp server, and they have disallowed public key authentication, and require us to change our password every 90 days. The problem is that, I cannot see ...
0
votes
0answers
2 views

How to access usb otg files from Kali Nethunter terminal Nexus 6 [migrated]

I have a rooted Nexus 6 running Marshmallow 6.0.1 and with the Kali Nethunter overlay installed. I want to execute some files that are in the usb otg from the Kali terminal, but I don't know how to ...
0
votes
1answer
25 views

Give the command to remove duplicate lines in a .txt file and save the new file as new.txt file

I'm trying to do this but I cant create the file. I enter: sort myfile.txt uniq -u | tee newfile.txt and It wont create the file automatically. What am I missing here?
0
votes
1answer
2k views

mailx: nss-config-dir=/etc/pki/nssdb/: No such file or directory

I am trying to send email using mailx using remote SMTP server (in my case it is office365 SMTP Server). Here is the command: # echo "THis is the Body of the email" | mailx -v -s "This is email ...
1
vote
0answers
26 views

mount: special device /dev/sda1 does not exist

I had a CentOS 6 server suddenly lock up on me after doing about 2 weeks of calculations for a project. Upon reboot, the machine would crash while attempting to mount the devices listed in the fstab ...
0
votes
1answer
28 views

How do kthreads actually work?

Need to implement DHCP server in kernel space. It's supposed to be a multithreading server, and I think I should use kthreads ( I'll be glade if you know better decision ). However I can't understand ...
12
votes
5answers
36k views

Resolving MAC Address from IP Address in Linux

I need to write a bash script wherein I have to create a file which holds the details of IP Addresses of the hosts and their mapping with corresponding MAC Addresses. Is there any possible way with ...
0
votes
1answer
21 views

Linux not using default route [on hold]

I'm no Linux expert, though I use it regularly. So can someone throw some light on the following behavior. I would expect traceroute to have the first hop as 192.168.1.160 ian@ubuntu-mini:~$ ...
11
votes
1answer
789 views

Why does hdparm see two different values for the size of a drive?

I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
0
votes
3answers
45 views

Linux + how to verify the CPU performance

I have few servers that I manage in my origination ( red-hat 5 ) my users complain about the bad CPU performance grep processor /proc/cpuinfo processor : 0 processor : 1 can I ...
0
votes
0answers
35 views

Monitoring Linux Machines [on hold]

I have a couple Linux machines and VMs at home that I want to monitor. Basically, what I would like to do is setup a web page that display's information such as CPU/RAM usage, Uptime, IP Address etc. ...
1
vote
0answers
19 views

understanding output of strace of empty c program [migrated]

int main(int argc, char *argv[]) { return 0; } Given the above C program, I get the following the output using clang test.c ; strace ./a.out. execve("./a.out", ["./a.out"], [/* 36 vars */]) = 0 ...
0
votes
0answers
20 views

changing file and folder permissions for network shares

I am fairly new to linux but used it before and know bit about the command line etc... I am trying to set up a folder in which everyone has their own username and password with each folder, I have ...
0
votes
0answers
15 views

CentOS 7 grub option is missing after upgrading windows 8 to 10

My system was dual booted with CentOS 7 and Windows 8. After I reinstalled the latest Windows 10 Pro and removed windows 8, my system is only booting with Windows 10 as the Grub2 is not appearing at ...
0
votes
0answers
18 views

respawn with arguments and tty3 without root?

Please bear with me as I am not a Linux guy. I am trying to start a application to run in a terminal that I can ssh in and conspy to see the activity and also respawn if there is a crash. I have a ...
0
votes
0answers
20 views

Infrastructure Documentation tool [on hold]

Is there any open-source tool that can be used for IT hardware infrastructure documentation with some additional services such as automatic updates for new hardware , mutual dependencies , networking ...
0
votes
1answer
32 views

Exporting a Variable from bash script does not work, does work if I change the variable to any other name [on hold]

This is the strangest behaviour I have ever seen. I know you might be shocked to see the below explaination but yes this is happening. I'm trying to export a variable name which is LON_GEMINI_BOX ...
0
votes
1answer
4k views

How can I see settings of the email server?

I have root access to a Linux server (CentOS 5.10). I want to see the email server's settings such as whether SMPT is working, wheter there is an email server, port number, does it require SSL, what ...
0
votes
0answers
15 views

Autocomplete in browsers doesn't work on Linux

I have several websites which use autocomplete in their forms. For example, after logging in to an invoicing website I can type in the client field several letters (3-5) and then the box with list of ...
2
votes
1answer
2k views

Bridge interfaces with Vlan on Linux based access point

I have a Linux based wireless access point. It has eth0 interface for ethernet, ath0 for wireless and br-wan as a bridge between the two. bridge name bridge id STP enabled ...
3
votes
1answer
309 views

What is the purpose of the grub command line

In the grub bootloader if you press esc it will take you to a command line interface that looks like grub> _ What is this promt used for? It doesn't look like it's connected to Linux. Is it a ...
0
votes
1answer
27 views

Determine which network interface to use based on target IP

Say I have two network interfaces, eth1 and eth2, both of them connected to a different ISP. How can I instruct linux to use eth1 for all traffic to the IP 111.222.111.222 while eth2 is used for all ...