0
votes
0answers
3 views

Finding files and directories with different umask

i have an umask 0002 using umask -S it returns u=rwx,g=rwx,o=rx. How do i find all files and directories that does now have rights set up accordin to mask? The directories goes 777 - mask and files ...
0
votes
1answer
8 views

what is the use of -U option in ping command?

I was learning ping command and their options. In ping -U option is used for full user to user latency. There is no difference for ping and ping -U option in output. $ ping google.com PING ...
0
votes
0answers
11 views

Wget: Segmentation fault (core dumped)

Whenever I try to download anything I get thi Segmentation fault (core dumped) with or without -c it doesn't matter I tried curl and it just kept giving me a bunch of random symbols which I'm ...
1
vote
2answers
20 views

Ouput to a file and read it

I am trying to output the ps command to a file in /home/username/ps.txt. I want to create the file on the go, write the output of ps to it and also read the same in a single command. I tried this: ...
0
votes
1answer
17 views

Unix/Linux - File Formating

We have a source file which needs to be formatted into a fixed width file. Source File Format: Hdr1 Dtl1.1 Dtl1.2 Dtl1.3 Dtl1.4 Trailer0004 Hdr2 Dtl2.1 Dtl2.2 Dtl2.3 Dtl2.4 Dtl2.5 Trailer0005 . . . ...
-1
votes
0answers
9 views

the following error occurred while installing x11 in aix. would you please guide me for solution

the following error occurred while installing x11 in aix. would you please guide me for solution.
0
votes
2answers
11 views

Issue with the shell script after storing the directory in a variable

FTP is connecting to the server but i am getting an error - Enter if the env is dev or test or prod: test Please enter the id no : xxxxxxx Connected to xxxx 220 (vsFTPd 2.2.2) 331 Please specify the ...
1
vote
1answer
9 views

Bash capturing asterisk inside a file

I have a text file which contains an asterisk as the first character in every line, when I try to process the file in a script like this: while read line; do out=$(echo $line | awk '{ print $3 }') ...
0
votes
0answers
11 views

how can I install centos 7 inside RHEL5

I am badly in need to install one software torch 7 in a GPU hardware node. This GPU node is running licensed RHEL5 version. Unfortunately torch 7 software doesn't support any RHEL version(I feel). It ...
-2
votes
1answer
6 views

How to process only certain columns and ignore header and footer in delimited text file using awk?

I have an input text file called text.txt My output should be My command that I am currently using is awk -F "|" 'BEGIN{NR > 1; OFS = "|"}{print $1, $3}' text.txt > text2.txt Why isn't ...
2
votes
4answers
27 views

How do i sort first column every 4 lines in a file with a key in second column

Example File : first column can have fixed set of 4 unordered values world1.com,world2.com,world3.com or world4.com second column is a key belongs to each line such that each of the four sets has ...
-1
votes
0answers
7 views

Scheduled restart for tomcat server and sending response mail to Admin

I have a script to stop and start tomcat6 service on web servers. Therefore I should add this script to crontab on all the server in order to fulfill the requirement. But this is so difficult to put ...
0
votes
0answers
6 views

When creating a copy of files for a development server, how should I handly differring Group and Owner IDs to allow for easy syncronizing?

I am doing web development for a client, and have created a copy of all their files in a development area. This is a separate cpanel account, and I have copied the files across and maintained the same ...
1
vote
1answer
12 views

What is the use of socket buffer size in ping?

I am learn about the ping command implementation. In that I had a one doubt. The doubt is I know the socket buffer is for how many bytes transfer at a time in the socket. But how the ping command ...
3
votes
1answer
16 views

Replace a word after matched word with incrementing values

I have a file like this - ! interface csa2549abA xxxx yyyy zzzz ! interface aso23apwoeAe aaa bbb ccc ! interface FastEthernet0/1 ppp qqq rrr ! and so ...
0
votes
0answers
13 views

vim how to insert template of codes quickly/smoothly in current file at current position

I managed to write a single template file, which would be populated if i started a new cpp file autocmd BufNewFile *.cpp -r ~/.template.cpp But, with increasing pieces of template codes like for ...
3
votes
2answers
96 views

SH: How to make vars from one script available in the main script?

I have two scripts that need to run and both require the same variables set the same way. As a result I figured I'd break the setting of the variables out into a separate script. However, I can't seem ...
2
votes
0answers
8 views

GlusterFS is slow on write. Where to look at?

I'm building a GlusterFS. It is a distributed setup with 10 nodes, no replica, no striping. The read performance is good, however the write operation is very slow comparing to the disk behind it. It's ...
2
votes
1answer
37 views

sed - Use file1 to find replacements contained in file2 for lines from file3 [duplicate]

I'm new here and haven't posted much, I'll try to make this as clear as I can. I want to perform a find and replace that involves three files: find.csv identifies lines containing strings. I want to ...
0
votes
1answer
23 views

When does an array variable represent the entire array, and when the element indexed by `0`?

Bash manual says: Referencing an array variable without a subscript is equivalent to referencing with a subscript of 0. In Bash or POSIX shell, is there some general rule for when an array ...
1
vote
1answer
18 views

how to inject keystrokes in a program like Safari from a bash script?

I am trying to automate some keypresses every few minutes. The exact timing is still undetermined. But basically I want to capture a live chat dialogue. I'm sure I could do this more elegantly. I ...
2
votes
1answer
16 views

How to delay a program from starting on boot up - Xubuntu

I am running Xubuntu and have several programs automatically starting when the computer powers up. All the programs starting at once is causing me issues with having the programs talk to each other. ...
0
votes
1answer
20 views

SSH - How To Make Three Computer Tunnel?

ComputerA connects though putty to Server at port 77, and there is a reverse tunnel set up from the Server at port 6666 to ComputerA at port 22. ComputerA also has a ssh server set up with a user ...
0
votes
0answers
30 views

Matching number using grep [on hold]

I have this text: yuiopao:##yuiopao:14975:Alex Vart student:/home/stud/yuiopao:/bin/bash polkovar:##polkovar:5004:John Adi student:/home/stud/polkovar:/bin/bash gfgfdgd:##gfgfdgd:11000:Alan ...
0
votes
0answers
9 views

Mounting AirPort in Raspbian

I am trying to mount a AirPort Time Capsule internal HD on a Raspberry Pi. I tried the directions [here][1], but could not get it to mount. Command I'm using (Assumptions: Time Capsule's IP is ...
1
vote
2answers
24 views

How to work with symbolic links to directories

I am experimenting with symbolic links and I'm encountering a couple issues. The first is how after following a symbolic link to a directory to display the actual working directory instead of the ...
0
votes
0answers
8 views

Is copying .Xauthority to root the same as becoming root?

If I want to install weblogic/jboss to my server as a root. If there any difference if : 1. I login as a root using the key from xauth list then install it OR 2. If I login as a user, become root ...
1
vote
2answers
15 views

Getting rid of a line with a perfect match (not substring) using sed

I want to delete a line which matches the word name but doesn't delete the lines have something following it. I can't seem to find an answer to this. I know sed -i '/name/d' * would delete the whole ...
2
votes
0answers
22 views

Disable CapsLock functionality on short press

Is there any way to make pressing CapsLock effective only on long press? for example it effect only when we press and hold it for half a second? (I'm using ubuntu 14.04)
2
votes
1answer
14 views

CentOS requires root pw for network pref changes

Why does CentOS require root privileges to configure the preference panels? It seems like sudoer access really should be sufficient for this. Is it possible to change this?
1
vote
0answers
10 views

apparmor: mysql permissions--with no recent changes

Mysql server is being blocked by (I think) apparmor, but I'm at wits' end to determine why/how. I'm not overly familiar with apparmor. I know I shouldn't uninstall apparmor--for at least two ...
0
votes
0answers
9 views

How do keberos, an ldap server, samba, and linux / unix file permission acls work together? [on hold]

There's alot of scattered documentation about these, but I'm trying to determine how these might work together. Is it possible to have Samba as your Domain Controller, with Samba file sharing ...
0
votes
0answers
6 views

How do I prevent pointer from jumping when tapping touchpad?

I'm running i3 with xterm in Arch Linux on a laptop. My issue is that whenever I try to move the mouse cursor, it seems to initially register it as a tap, causing the cursor to teleport to the spot on ...
1
vote
1answer
16 views

Process Scheduling Information Extraction

I want to extract the process having highest utilization on each processor core and then output its information (PID etc.) to a file. How can I do it by using either top or ps command? Thanks.
0
votes
0answers
10 views

Can't delete files using SSHFS on windows

My problem is that i can't delete any fails from any folder using my windows sshfs client. Even though i'm logging in through root account, it still says that i do not have enough permission to ...
0
votes
0answers
37 views

What is the definition of an array being set?

The definition for an array being set is from bash manual: An array variable is considered set if a subscript has been assigned a value. The null string is a valid value. Does it mean that an ...
0
votes
1answer
35 views

command substitution - cat file inserts quotes

In bash, given these files: $ cat noquotes.txt s/a/b/g $ cat quotes.txt "s/a/b/g" Why does $ echo "aaa" | sed -e $(cat noquotes.txt) bbb succeed, but $ echo "aaa" | sed -e $(cat quotes.txt) ...
1
vote
0answers
25 views

Two cronjobs - First to start a process - Second to stop a process

UPDATE 2: The log file was showing /bin/sh: 1: bitcoind: not found So I added it into the PATH like this: pi@raspberrypi:~/bin $ locate bitcoind /usr/local/bin/bitcoind pi@raspberrypi:~/bin $ ...
0
votes
0answers
27 views

In an array, does having an index/key implies that the element indexed by the index/key is set?

In an indexed/associative array, does having an index/key implies that the element indexed by the index/key is set? ( Note that by "set" above, I mean that a parameter/variable is set.) If not, ...
2
votes
1answer
18 views

Conditional PS1

I'm basically trying to make my PS1 look like this when in a git repo: $ ~/Projects/Blah (master): Or if I'm not in a Git repo, I want it to look like this: $ ~/Projects/Blah: This is my current ...
3
votes
2answers
27 views

Chaining Linux terminal commands

I have a function that has my EV3 speak speak(){ espeak -a 200 -s 130 -v la --stdout "$@" | aplay; } it works by simply speak "Say this" I want it to say the contents of a file, so I have this ...
1
vote
1answer
17 views

How to get pinentry-curses to start on the correct tty?

I use gpg-agent for managing both PGP e SSH identities. The agent is started with a script like this gpg_agent_env="$XDG_CACHE_HOME/gpg-agent.env" export GPG_TTY="$(tty)" if ! ps -U "$USER" -o ...
-2
votes
2answers
36 views

2.7 Terrabyte Partition only 100G in Size [on hold]

I've just partitioned and mounted a new 3-terrabyte hard-disk under Ubuntu. Now the size of the partition shows up as 100G only. lsblk command tells me sdc1 is 2.7 terrabyte root@homecinema-xbmc:~# ...
1
vote
1answer
12 views

Control fans of Samsung NP900X3E

I have a Samsung NP900X3E laptop and I would like to control the fans as one of them is making weird noise. I'm running Ubuntu 14.04.4 LTS with "Linux laptop 3.13.0-85-generic #129-Ubuntu SMP Thu Mar ...
1
vote
0answers
17 views

Python3 not coming up in interactive mode

I have python3 installed on a work computer. Python 3.4.3 (default, May 3 2016, 09:46:33) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux Type "help", "copyright", "credits" or "license" for more ...
1
vote
2answers
13 views

To Have Eclipse 4.5 in Path?

I downloaded the precompiled Eclipse Mars 4.5 in the official site here. Pseudocode Extract the tarball eclipse-jee-mars-2-linux-gtk-x86_64.tar.gz Move extracted Eclipse directory to some location ...
0
votes
0answers
5 views

Detect bluetooth button press in terminal

I have a bluetooth earpiece samsung HM1100 and im trying to detect its button press in terminal. I have tried this, but hcitool scan is not detecting my earpiece. But it detects other laptops. Is ...
0
votes
0answers
10 views

How to show up only one partition of an USB key on Windows? [on hold]

I have an USB key with 3 partitions, GParted show something like this: /dev/sdd1 fat32 /dev/sdd2 fat32 /dev/sdd3 ext4 no allocated In the sdd2 I have a linux live OS, in the sdd3 I have the data ...
0
votes
2answers
18 views

Is sysfs a strict subset of procfs? [duplicate]

Is the information that the Linux kernel provides to the user via sysfs a strict subset of the information that the Linux kernel provides to the user via procfs? If not, then which information is ...
2
votes
1answer
33 views

How to hide a specific process?

The command hidepid is used to prevent users from seeing all processes that do not belong to them, but it doesn't offer the possibility of selecting a specific process. Is it possible to hide only one ...

15 30 50 per page