Tagged Questions

Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

2
votes
0answers
13 views

Common tips for compressing/extracting large folders?

Are there any common tehniques or issues I need to be aware that can speed up or make more robust the process of compressing/uncompresing large (>60gig) folders with many (>3000 files) elements ...
0
votes
0answers
5 views

Configure directories in proftpd

I would like for one of the FTP users to leave accessible only two folders in the directory... Create file .ftpaccess with: <Directory> <Limit ALL> DenyUser vera ...
0
votes
0answers
7 views

Why doesn't ruTorrent/rTorrent respect my ratios?

I have set up my ratios such as this on ruTorrent (3.6) and rTorrent (0.9.3) : When I add torrents they stop at the 2.0 ratio as they should. If I want to seed more once it was stopped and assign ...
1
vote
0answers
27 views

Linux WBEM client to pull event logs from Windows SCOM Server

I was told by my UNIX team that a wmi/wbem client for Linux called WBEMCLI allows Linux to pull event logs from a windows server given that the right parameters are configured on the linux side. Now ...
0
votes
1answer
9 views

Dig command: Is the output guaranteed to be sorted?

Let's say I'm trying to lookup the IPs mail.yahoo.com, gmail.com and mail.google.com If I execute: dig @8.8.8.8 +nocomments +noquestion \ +noauthority +noadditional +nostats +nocmd \ ...
1
vote
0answers
18 views

How I can dynamically subset a ttf font?

Let's say I have a long text: Latebrae agente praefuit imperator nec praefuit ducens insidiarum sunt insidiarum emensis fatorum ubi milites rebus Noricorum viam sorte rebus suis emensis tristissima ...
0
votes
0answers
11 views

Which utility or UNIX command can help to submit a bulk of event data to Google Universal Analytics?

https://developers.google.com/analytics/devguides/collection/protocol/v1/reference In the link above the Measurements Protocol is elaborated. Suppose I have a CSV file with columns like EventName, ...
1
vote
1answer
27 views

From the command line, how do I zip specific files and directories into one compressed folder?

I'm working in a directory that looks like this: folder >.git >css >img >js Archive.zip bla.html bla.yml During work on this project I very regularly have to zip up the ...
0
votes
1answer
27 views

rsnapshot: how to remove all files from a tree including read-only directories

I just discovered that rm -f can not remove files from a tree including read-only directories. Is there an alternative command that can do this? The removal is triggered by rnapshot and I thought ...
0
votes
1answer
9 views

Script for Folder transfer from DEV server to TEST server

can you pls provide me the script which should like below Transfer the tar zip directory from dev server to test server Also it shoud check for chekcsum , junk charcter in the directories once ...
2
votes
1answer
19 views

I tried copying invisible files to a directory but I can't find it

I just did this: $ cp .cordova && ../../../ In Terminal (Mavericks). Totally forgot to include an actual path to a directory. I went back to the directory where I thought .cordova was ...
0
votes
1answer
46 views

The OSX Process that wont die

I've got a process on OSX 10.9.5 that just wont die. I have tried kill PID kill -9 PID sudo kill -9 PID killall sshfs killall -9 sshfs sudo killall -9 sshfs Activity monitor / select process / ...
1
vote
2answers
54 views

What does ./ mean in Unix/Linux [duplicate]

This might look wrong, but I know that using ./ you are basically "BASH"ing your scripts in Linux/Unix environment. For Windows users, this is same as running an .exe file from command prompt. ...
0
votes
0answers
12 views

WAFL - Write Anywhere File Layout

Hi I'm looking for some information on how WAFL works , more specifically I need help in understanding the following parts. To make your task of answering simpler I've outlined a few questions. ...
2
votes
0answers
22 views

What are the other uses of Hard Links , Junction Points , Symbolic Links

There are many answers on why Hard Links, Junction Points & Symbolic Links are useful. I understand Junction Points are supported Vista onwards and described as Directory Hardlinks (even though ...
2
votes
1answer
24 views

What's happening when you do 'cd //'? [duplicate]

This is just trivia really, but it's just got me wondering what's going on. I accidentally hit / instead of . today and got this: [andrew.morris@server ~]$ cd // [andrew.morris@server //]$ pwd / I ...
0
votes
1answer
18 views

Delete a file inside multiple ZIP archives on the OS X command line

I'm trying to delete files with specific extensions from multiple zip archives. For example I want to delete all .html files contained in the zip archives in the current path so I have tried this: ...
1
vote
0answers
7 views

Drop privileges in Pass (unix password store tool)

Pass is a Unix command line password manager http://www.passwordstore.org/ To read any stored password one has to input the master-password, it then allows to read/write any password. However this ...
1
vote
2answers
22 views

how to use tar '--remove-files' option inside find -exec?

I've got a number of very large log files which I want to compress individually so I can't use xargs or pipe stdout to get a huge compressed file. I'm trying to do this: find . -mtime +1 -iname ...
0
votes
0answers
14 views

What installs fonts on a unix-based system?

I want to understand in which operating systems (unix-based), I can assume that fonts will be installed automatically? I assume they are probably installed in conjunction with a desktop GUI such as ...
2
votes
1answer
56 views

What is the difference between “elif” and “else if” in shell scripting?

I am very new to shell scripting. When I look at some code, written for ksh (#!/bin/ksh) I see there is else if as well as elif used in one script. So, what is the difference between else if and ...
0
votes
0answers
5 views

USB Target mode multiplexer for video feeds

We have proprietary (not ours) windows software that processes video from one camera connected via USB. We would like to analyze feed from many (10+) cameras by rapidly switching video source. Usage ...
1
vote
0answers
27 views

Monitor disk I/O used by specific command

I know that there are various tools for monitoring disk I/O, but I am wondering specifically if there is something equivalent to time for disk usage? For example, I am benchmarking a specific command ...
0
votes
1answer
22 views

How to remove mac extended attributes from a file?

I have the following special attributes on my pdf file: -rw-r--r--@ 1 Barnabas staff 18227 Oct 9 11:34 myfile.pdf com.apple.metadata:kMDItemWhereFroms 331 ...
1
vote
1answer
60 views

How to justify and center text in bash?

Newbie here. I'm looking for bash script to center and justify text. My script only works with one line of text. How would you improve it? #!/bin/bash COLS=$(tput cols) while true; do clear ...
2
votes
1answer
68 views

Splitting video file into equivalent segments with ffmpeg

I have ffmpeg installed in my linux box. I am using it to split files into equivalent segments. So far I have test two approaches: 1. Create a bash script that grabs the file durationffprobe and then ...
0
votes
3answers
44 views

*nix virtual environment

I used python-virtualenv previously for python tools, but now I've found a new remote job which needs a lot of native tools to be installed into my system. The question is how can I separate my ...
1
vote
1answer
22 views

Authenticate User's Unix Credentials via Web Browser

Can anyone give me tips on how to authenticate a user's Unix credentials through the browser? I am basically giving access to some file viewing and I want to make sure the users are authenticated but ...
1
vote
1answer
74 views

What is the difference between OS X and Linux filesystem? [closed]

When I go to the terminal in a Mac running OS X 10.something, which is everything now, the file hierarchy and naming scheme, especially when I cd to the root of the hierarchy it looks identical to ...
3
votes
1answer
35 views

Merging multiple log files by date including multilines

How can I merge log files, i.e. files that are sorted by time but that also have multi-lines, where only the first line has the time, and the remaining ones have not. log1 01:02:03.6497,2224,0022 ...
2
votes
2answers
30 views

Grep in newest file

I'm trying to find a specific line from the newest file I have in subfolders. Files have the same name. So structure is like: Folder SubFolder1 filename.xml SubFolder2 filename.xml I'm ...
2
votes
2answers
41 views

In UNIX, the rm='rm -I' is not working

In the command prompt of g++ terminal, I am typing alias rm='rm -I' and it is giving me missing operand. I'm not quite sure what I should do, and yes I know naming it rm is bad. It is for an ...
0
votes
1answer
16 views

Overiding global command in unix

I am using a server, and I don't have root access. I need a newer version of a package. So, I installed it with the prefix to my local directory and updated $PATH and $LD_LIBRARY_PATH. Since the ...
0
votes
1answer
23 views

DU reports different folder size in unix and cygwin (windows)

I was copying some files from windows machine to unix one (debian) and after checking file count (both matched) i tested folder size with du and i got different results: windows: ...
0
votes
1answer
33 views

.tmux.conf: How can I conditionally set a color variable?

Sometimes I use a light-colored terminal, sometimes a dark one. I export a THEME environment variable to conditionally set colors in my .bash_profile and .vimrc. I'm trying to do the same in my ...
2
votes
2answers
146 views

Slicing video file into several segments

I am currently using ffmpeg to slice video files. I automated the process through a script called ffmpeg_split.sh. Although this very slow it is efficient in splitting videos into equivalent settings. ...
1
vote
2answers
39 views

Bash parameter Expansion: Best practices for speed?

I was just wondering if anybody knows any best practices or if there is any documentation about this topic: The scenario is searching / grepping in the log files. To make my point I will use ls. So ...
2
votes
1answer
33 views

Generate a sequence of numbers from human-readable input

In bash, I have a program that lists several choices of files to download, then prompts the user to select some. I'd like the user to be able to type in something like 1-6,8,11-12 to download files 1, ...
1
vote
1answer
19 views

How can I get the unix group name based on the group id?

How can I get the unix group name based on the group id? Note: looking in /etc/passwd or /etc/groups is not a solution as some systems may be using NIS so the users and groups are not listed there.
0
votes
1answer
23 views

tar: backup before overwriting

The cp command has a feature not well-known to everybody that it can backup before overwriting the target file. Does tar has such feature as well during restoring? I saw an option of --backup, but ...
0
votes
0answers
16 views

Unix: Traffic Control with pfifo queues

I'm writing my master thesis in computer science and I need to control traffic flows in my testbed. Unfortunately ethernet has got the best effort prinicple, so if there are two traffic flows on one ...
2
votes
1answer
30 views

Running native applications on the Linux Kernel

When the Linux kernel has loaded it loads the distro or OS to take over, how can I make the kernel load some native application (written in c) instead? I don't need a GUI or anything, Instead I want ...
0
votes
0answers
15 views

How can I get “find” output so that I can copy and paste it to other commands?

Is it possible to print find output paths in such a way that you can copy and paste them, they will already be properly escaped so that you can execute commands on that path? Usually I have to put ...
1
vote
0answers
28 views

How can I efficiently filter Dos packets? [duplicate]

I have recently been the victim of some Dos attacks. The facts : I received a very high amount of packets saturating my connection and preventing me from accessing the Internet during one hour ...
-1
votes
2answers
34 views

how do i create a user account in unix using CLI?

I am using Redhat and I want to make a user account using CLI. I am using this commands but I guess it's not working. # useradd smithj -c 'John Smith' -m # passwd smithj and the result should be ...
0
votes
0answers
22 views

Any file copy to /my/ftp from user(khan) should have 664 permission in solaris

I have one ftp directory /my/ftp and owner is raza. user khan is copying files to above directory. I want any file copied by user khan should have 664 permission. I tried by setting umask 002 in ...
41
votes
11answers
7k views

What is the relationship between Unix, Linux, Ubuntu and Debian?

What is the relationship between Unix, Linux, Ubuntu, and Debian? I suspect they are all Operating Systems that are based upon one another - similar to how Windows is based on DOS. Is my suspicion ...
1
vote
1answer
16 views

why isnt the inode id of dotdot didnt have the updated inode id?

I have a function that backtracks from the child directory to the root by getting the inode id of the parent from the ".." dentry of the child. The main purpose of this backtracking is to identify the ...
0
votes
0answers
22 views

Very simple, single-user, hardcoded password FTP server for ubuntu

I have just mounted a Ubuntu box and would like to quickly spin a really simple FTP server that gives access to this server to upload the files. I just need a single user and I can create the password ...
1
vote
1answer
23 views

Are file systems like SFS and UFS still used today?

I have read the Wikipedia pages for both these file systems: SFS (Smart File System) UFS (Unix File System) but I couldn't find a real answer. For example, for SFS the common Operating Systems ...