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.

learn more… | top users | synonyms

-1
votes
3answers
2k views

How to set domain name for server running on ip address

Right now server is accessed via IP Address http://10.1xx.19.2xx:8080/svn How can i change it to http://domainname.com/svn ? Which file to edit ?
9
votes
3answers
29k views

How to delete files on the command line with regular expressions?

Lets say I have 20 files named FOOXX, where XX is the number of the file, eg 01, 02 etc. At the moment, if I want to delete all files lower than the number 10, this is easy and I just use a wildcard, ...
2
votes
3answers
2k views

Is there a way to force du to report a directory size (recursively) including only sizes of files?

Suppose I create a directory test/, with two files (test/a, test/b) and an inner directory test/c with a file test/c/d, like this: mkdir test cd test touch a echo 1 > a touch b echo 1 > b mkdir ...
1
vote
2answers
35 views

Open file to run x time - linux terminal

I want to create x instance of a .sh file. By exemple instad of open x terminals and enter ./.sh in everyone, I want to open then open autmatlicly all doing the same "*.sh" file run. Any way to do ...
0
votes
0answers
227 views

Options to drag and drop with synergy KVM switch?

I am effectively using Synergy between Windows/Linux/Android However, I am trying to find a way to drag and drop. I know I can "just network a drive, and modify a [send to], but honestly, when it ...
1
vote
1answer
65 views

Is it possible to add a key to an open luks volume whithout providing a current key?

As the title states, I need to know if there is a method to add a key that doesn't require the user to retype the password / provide a keyfile for an already open luks volume. I'd actually need to ...
0
votes
1answer
817 views

Upgrade R version on Linux Red Hat 6.2

I have R 2.15.2 installed on Linux Red Hat 6.2 and I want to upgrade it to the lastest version because I cannot install some packages (like 'Rcpp', 'shiny' and others). How can achieve that? Thanks! ...
13
votes
2answers
77k views

How Do I Map a Drive Network Share Using the Linux Terminal?

Still getting used to Linux, and the GUI is great. I have Ubuntu 10 and I can go to Network and see the Windows network. Then double clicking this gets me to the drives that are shared. Then when I ...
0
votes
1answer
17 views

Move child folders into a different folder

I am new to UNIX, and I am trying to write a shell script that would move all folders that are older than a day in log archive directory into another folder. Below is the command I am using for doing ...
0
votes
2answers
2k views

Suse Enterprise Server 12 - Resize Root partition

I have a Suse Enterprise Server 12 installed on a VMware server, I want to be able to increase the root volume, ideal I would like to be able to set it to auto expand. below is the layout. df -h ...
3
votes
1answer
1k views

Systemd-networkd: How can I prepend a static nameserver entry to DHCP-discovered nameservers?

I'm using systemd 213 on Arch Linux, and systemd-networkd/resolved with DHCP to connect to the internet. I'm also running a caching DNS server on 127.0.0.1. I'd like to make this server the first DNS ...
1
vote
2answers
97 views

User-defined Color Palette for Linux(or PuTTY?)

As my title states, I'm only SSHing into my Linux Box. I decided to try to use the OSC escape code, but I'm pretty sure you can guess what happened. Okay, back to my question. Can I set my own ...
0
votes
0answers
154 views

Windows 7 can't connect to Linux Server

I have looked through the similar threads on here and they dont apply to my situation. I'm running a Linux server with Samba on it. Up until Sunday I was able to see all my files on the server in ...
0
votes
1answer
202 views

(Arch)Linux board with dual ethernet

I am looking for a Linux board with the following requirements: 2 ethernet ports (helpful, but only 1 required) 2 USB ports SDXC support (for SD/MicroSD) WiFi (>25 concurrent users ideally) HDMI or ...
0
votes
1answer
133 views

Linux: Sort /etc/fstab by the mountpoint field

On linux, how would you sort the /etc/fstab file by mountpoint? I'm interested in sorting a section of fstab (whatever is mounted under /x) in such a way that parents are mounted before its children ...
1
vote
0answers
89 views

Ubuntu Linux nvidia xserver DPMS working for anybody?

Can the Ubuntu Linux nvidia xserver powermizer feature use DPMS to trigger "Power Saving Mode" in my Acer LCD? I switched this display from my Windows 8 HP machine to my Ubuntu Quantal Compaq ...
1
vote
1answer
125 views

Linux Bash “|” operator doesn't work - what am I doing wrong?

I am trying to check user password via login command like this: # echo "name\npassword" | login but the command ends without writing anything. echo ends because of SIGPIPE. Why did login stop ...
1
vote
1answer
679 views

Run startup script with another user

I have two users user1 and user2. And tomcat has owenership of user1 and started with user1 only. I need to make a rule for user2 such that user2 can starts/stop tomcat but tomcat should always be ...
0
votes
1answer
184 views

Regaining access to Linux server after SSH service dies?

I recently ran into an issue with a VPS where the SSH service crashed, leaving me unable to connect to the machine. The other services were up and running; only the SSH service died. I managed to ...
0
votes
0answers
13 views

How to get stdout of another program [duplicate]

Some Linux program prog1 permanently prints to console. I'd like to read and analyse it's stdout in my C program prog2 as stdin. I can't change prog1 source. I expect something like this command: ...
1
vote
2answers
5k views

How i can install BusyBox on Virtual Machine?

How i can install BusyBox on Virtual Machine? For instance, VMVare or VirtualBox? Where I can see some manuals about this problem?
2
votes
1answer
2k views

“chmod -R 777 /” for a few seconds - now what?

On Centos 6.5 I accidentally typed chmod -R 777 / Ooops. I CTRL + C'ed out of it very quickly, but not before it'd started working away for a couple of seconds. Consequences? Well, already su ...
0
votes
1answer
81 views

Download a text file with scp

I have tried scp -i ~/awscredentials/govindsinghnagarkoti.pem ubuntu@XX.XXX.XXX.XXX:/server/error.txt. but it is giving usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] ...
0
votes
1answer
40 views

Remote server browser

Is there any tool for pretty display directory structure where I'm currently in? My flow is pretty tedious like cd 'dir1' ls cd 'child1' ls and so on. I'd like to have some NerdTree + console ...
0
votes
1answer
68 views

What does cd myfolder/* do in Linux?

I am new to Linux and have been using the cd command for a while. I just saw someone cd'ing to somefolder/* like cd foo/*. What does that do? Also, depending on how that works, what will be the ...
1
vote
2answers
272 views

Linux: disbale USB without disabling power

TLDR I want toggle between the following usages of a usb-port via the terminal: use like a normal usb-port only supply energy to charge Story I recently got me something like a magna doodle ...
1
vote
0answers
36 views

How to change IrDA bitrate on Linux?

I've got this connection working between my linux machine via an IrDA dongle an this alcatel OT756. So far the irdadump command tells me that my device is there: 04:10:12.238144 xid:cmd ffffffff ...
1
vote
1answer
218 views

How to transfer files via infrared on Linux?

I know this is a way too old technology but I've got some files inside a very old cellphone that I need to transfer to a very old computer. So far my Infrared USB device works well, it's detected by ...
0
votes
2answers
135 views

Empty /var/log after running cron bash script

I wrote a little bash script and all of a sudden my /var/log folder is completely empty except for the log I created for the bash script. This is the script I'm running every hour with cron: ...
0
votes
1answer
564 views

VMware 10 and Linux guest OS: how to change NIC driver from vmxnet3 to vmxnet

Guest OS: Ubuntu 14.04 Host OS: Windows 7 VMware Workstation 10 Problem: vmware tools automatically install vmxnet3 driver, without an option to select nic driver. In .vmx, ethernet0.virtualDev = ...
0
votes
1answer
799 views

Puppy Linux cannot boot

I have downloaded Puppy linux slacko-5.6-PAE.iso , then used Unetbootin to burn it on my usb , when i am try to boot i am getting this message puppy_slacko_5.6.0.sfs not found. Dropping out to ...
-1
votes
2answers
193 views

If we have a collection of Linux computers on a LAN, how to write shell script to shutdown all computer [duplicate]

I have lab and in that ,collection of Linux computer are connected in LAN. i want how to writ e shell script to shut down all PC when we run that shell script.
2
votes
0answers
423 views

NTP Multicast configuration

I'm trying to get NTP multicast set up between a few computers. Right now I'm getting NTP multicast packets from a computer that I have neither access to nor information on (let's call that A) that is ...
1
vote
1answer
146 views

Cannot open /dev/rfcomm1 : Host is down

I am working on raspberry PI and on Bluetooth. I am using old raspberry pi kernel as the new one has got some bugs that were not resolved with respect to the bluez daemon. At present my kernel version ...
0
votes
1answer
106 views

ssh-agent on ubuntu rapidly restarts

I am attempting to use ssh-agent on Ubuntu 13.10 so that I will not have to enter my passphrase to unlock a key every time I want to use ssh or git. As you can see below, ssh-agent appears to be ...
1
vote
1answer
25 views

SELinux access only to opened files

I am studying SELinux. Using SELinux, can a binary be allowed to access files opened by its parent process, and no other files? If it cannot, then we should enhance it.
0
votes
1answer
485 views

Unable to SSH into remote server with defined user & keyfile

This one is just bugging me, I can ssh in as USER when I am using USER account ie: USER@SERVER$ ssh -v USER@ip-SERVER2 logs in just fine if I try and use USER2@SERVER$ ssh -v USER@ip-SERVER2 ...
1
vote
1answer
647 views

Installing linux/selinux kernal headers

I'm trying to build the newest version of glibc (2.19) on CentOS 5.6 and I've run into some issues The documentation of glibc says that I need at minimum the linux kernal headers 2.6.19 (even if this ...
0
votes
1answer
397 views

Routing Traffic With OpenVPN

Few minutes ago i configured my VPN server, and actually I can connect to my VPN but all trafic is going through my normal home network. On my OpenVPN application I've got an information : Server IP: ...
3
votes
1answer
597 views

Using sed with parallel gives empty output when redirecting to file

I'm using the zsh shell. I am trying to use sed to substitute some text in many files, using parallel to speed up the process. When I tested this on one file and let the command output go to stdout I ...
2
votes
0answers
228 views

Cannot boot NixOS Install CD

I am trying to install NixOS on an Acer laptop. When I try to boot off of the install CD, the system starts up and shows the Acer logo. Then, the boot menu of the CD appears, but it only displays on ...
4
votes
2answers
680 views

(Ubuntu/Linux)“find” command gives different results based on quotation marks

I was using find -iname *prib* and getting only one result "./prib09jack.pdf" with find -iname "*prib*" I get many more results that I was looking for such as ...
0
votes
2answers
36 views

what is the difference between shell command staring with “.” and “./”? [duplicate]

In Linux shell, I've seen the command starting with "./" e.g. $ ./example But then I've also seen the similar command like $ . example.sh My question is do they have the same function?
11
votes
2answers
2k views

Is there any command like time, but for memory usage?

Is there any command like time, but that reports more statistics? It would be great if I could do something like: $ statistics some_command time: real 0m3.002s user 0m0.000s sys ...
1
vote
1answer
148 views

Why does 'cd' not work on an entry with 'directory' attribute?

My OS is fedora 20. I act as a root user. under / directory, I input: #ll ... d????????? ? ? ? ? mnt ... #cd mnt bash: cd: mnt: Not a directory #chmod 777 mnt chmod: cannot access 'mnt': No such ...
0
votes
2answers
334 views

The cd command using variable to mapped NFS volume within ssh in linux script is not working

I have to do the following from within a bash script. The /VMNFS/ folder is present on linux box, from where script is run, and is mapped to the machine into which i am ssh'ing, as an NFS at ...
0
votes
0answers
25 views

What directory is '//'? [duplicate]

I accidentally typed a couple of backslashes instead of a couple of periods: jwalton@debian-q500:~/openssl-1.0.1f$ cd // jwalton@debian-q500://$ pwd // jwalton@debian-q500://$ What directory is ...
2
votes
1answer
1k views

Upstart: chdir stanza VS cd command

In Upstart script I can use chdir stanza to set the working directory. Also I can just execute a normal cd command inside my script section. What is the difference between this two approaches? When ...
4
votes
3answers
3k views

How do I `cd` and then* `ls` automatically in linux?

I have found myself keep doing cd some_dir quickly followed by ls for quite some time now, and have been trying to write a bash alias to let me do this, such as: alas cd="cd $@; ls"; Problem with ...
6
votes
3answers
3k views

'cd' command in terminal - using partial folder name

If I want to navigate inside folder with long hard-to-type name, is there way to use 'cd' with some kind of shortened name of this folder, to get free from unnecessary work?