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

0
votes
0answers
12 views

KeePass destroys Hardlinks?

I'm using KeePassX on OS X. I have a folder ~/.keyfiles, to which I'm hardlinking all key- and password-related files for a daily encrypted backup. To also backup my KeePass-Database, I therefore ...
1
vote
2answers
139 views

Run a shell script in background in Unix at specific time daily

I have a shell script task.sh that is needed to be run in background in Unix at specific time daily. I know nohup is useful to run the script in background. But worrying about how to schedule this ...
0
votes
2answers
43 views

xargs; How & When?

What exactly is xargs? How do you use it? When would it be considered pragmatic, or otherwise appropriate to do so?
0
votes
1answer
83 views

apt-get install libphp-phpmailer not including class.phpmailer.php

I am installing PHPMailer on a Ubuntu 14.04 LTS server. I ran the command apt-get install libphp-phpmailer. It installed the files under usr/share/doc/libphp-phpmailer as expected. However, it is ...
0
votes
1answer
18 views

How can I enable arbitrary users to edit files in '/opt' sub-tree?

I am user 'somebody'. I have a typical "Web blob" website ecosystem ( essentially an FS sub-tree starting at Apache's typical "htdocs" directory ). Its files are owned by 'root', and grouped to ...
1
vote
2answers
41 views

Using wildcard in unix find command's path

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ echo $Pswd|ssh ...
0
votes
1answer
75 views

Batch for execute Putty, log on Server and run commands with shell script or txt [duplicate]

I need help for this process. I have a batch file to run Putty and log with ssh an server and will execute commands from file "commands.txt". C:\Programme\PuTTy\putty.exe -ssh user@server -pw 123456 ...
4
votes
1answer
2k views

FreeBSD 9 ports: How to make quiet installations?

Just wondering how do I make ports installation - without config options (blue) window popup? Assuming that I accept default options of the installation. make install clean
0
votes
2answers
22 views

print lines containing limited words in the second field

I have a symbol table of the form M07UP49A0870I422.wav <s> haraa keelaa <bn> </s> M07UP49A0870I423.wav <s> <horn> jau <babble> </s> ...
2
votes
2answers
56 views

Unix find not working with a wildcard in the path when ssh'ing

This command with a * in the find path works fine on the local server Svr1$ find /path/*/foo/ -name "*20160208" When I try this remotely from another server it doesn't work Svr2$ ssh Svr1 find ...
0
votes
0answers
11 views

Deleting ftp folder in remote system using putty command automatically when system boots?

I need to delete a folder in a remote system using putty, I have rm command to remove particular folder, but this should run everytime when the system starts how to do it?
2
votes
1answer
173 views

Execute commands using sudo in remote server after logging into PuTTY through batch file

I need to login into remote server daily and perform same set of tasks. I am using Windows platform and the remote server is Unix. I use PuTTY to login to remote server. To reduce the manual work, I ...
4
votes
1answer
60 views

What are the other uses of hard links, junction points, and symbolic links?

There are many answers on why hard links, junction points, and symbolic links are useful. I understand that junction points are supported from Vista onward and are described as "directory hardlinks" ...
0
votes
0answers
57 views

How to save SSL certificate in terminal without openssl?

I've got the following scenario: A service runs on server-1, calling server-2 via SSL over proxy-1 Server-2 is external and out of our scope Server-2 can only be reached from server-1 over proxy ...
0
votes
0answers
16 views

Time command execution with real time updates

Generally I use time myCommand to know how long does it take to run myCommand. I was wondering if there's a command that also shows how long it has been running so far on real time. Something like: $ ...
1
vote
1answer
59 views

How pause list of process in htop?

I should like stop refreshing list of process. My problem is in often refresh list. How I can do it? I use a tool htop.
2
votes
2answers
2k views

How to correctly extract the files from rar archive that contains non-ASCII characters as folder name or filename on linux

I used rar to list/extract the archive, but the non-ASCII characters became unreadable words. The 7z could list the folder name/filename with readable characters, however 7z said the unsupported ...
1
vote
1answer
42 views

sTunnel failure to start

im a bit stuck and need help understanding what im being told as there is nothing in the log file, i get the following error when i try and run stunnel (servermode): sudo /etc/init.d/stunnel4 start ...
37
votes
3answers
28k views

Unix: How to unsplit in screen

I'm trying to learn how to use screen, in unix so that I don't have to open up several ssh connections and terminal windows just because I want to do more than one thing at the same time on a machine. ...
0
votes
1answer
45 views

FTP: executable file changing to a text file during download

I have unix executable files along with a mac OS X app that I have transferred to my FTP server. When I download these files after uploading them, the unix executables download as TextEdit documents. ...
1
vote
1answer
584 views

Connection timeout when transferring file via FTP

I am trying to upload my csv file to a Unix server using FTP in the Windows cmd window, and at the end of the process I get this message: 425 Unable to build data connection: Connection timed out ...
0
votes
0answers
7 views

Send binaries to old unix machine via serial socket

I have old SVr4 unix machine,connected via serialline running in virtualmachine. The serial is a socket called /tmp/att1 I can use minicom without problems But i cannot transfer with kermit. On remote ...
1
vote
1answer
21 views

How do I monitor changes made to environment variables ?

I have an environment variable whose value didn't match the one set by /etc/environment, even after reboot. I eventually found the auto-executed .sh script changing it, but that incident got me ...
0
votes
1answer
40 views

Destination host unreachable when using ping<hostname> but no issue with ping <ipaddress>

I have 6 VMs with CentOS called n1, n2, n3, n4, n5, lnx-app1 with the below IP addresses: n1.xyz.com = 10.10.100.101 n2.xyz.com = 10.10.100.102 n3.xyz.com = 10.10.100.103 n4.xyz.com = 10.10.100.104 ...
0
votes
0answers
13 views

Default Profile

How can I set the default profile to be loaded on a bash login? My system was loading my user profile instead of the system one. I had it working properly and seemed to have accidentally broken it ...
0
votes
1answer
36 views

Check if samba down from a Linux client

What is the most effective way to check Samba server availability from a Linux client?
1
vote
1answer
24 views

Remotely running malware detection on a *unix server

I've used Linux Malware Detect in the past and it's very efficient and useful, however to run the installation shell script access to the root directory is required. As a result, when I'm on many ...
3
votes
3answers
10k views

How can I chmod/chown a specific list of files?

I want to write a .sh script to setup some folder permissions, but was wonder if I can run something like: chown -644 ./one;/two;/three to chown a list of folders, rather than calling chown ...
7
votes
5answers
7k views

List all unique extensions for files contained in a directory

I would like to see all the unique extension of files contained in a certain directory. What is the command to do that in bash? One could use find . -type f to get all the files in the current ...
0
votes
1answer
38 views

How to print the calendar in reverse order in UNIX?

I want to print the calendar in terminal using cal -y command , but in reverse order. What should I add to print the calendar from December to January?
3
votes
4answers
412 views

Is the Windows kernel considered an “application”?

If it is true that all Windows files with the ".exe" file extension are considered "applications", is NTOSKRNL.exe, the Windows kernel, an "application", or is this an exception to the rule? What ...
3
votes
10answers
504 views

Why not ~/dls instead of ~/Downloads?

Most folder names in the *nix world are lower case. It makes them easier to type in my opinion. However, everything in my home-dir is capitalized! Why is this? Is it possible to change them? The ...
9
votes
5answers
134k views

How to run a command file in PuTTY using automatic login in a command prompt?

I am using the following to login automatically to a remote server and then run commands listed in a commands.txt, like this: C:\path\to\putty.exe -load "[Sessionname]" -l [user] -pw [password] -m ...
1
vote
3answers
154 views

How to Copy all the .c files starting with letter [h-o] to directory h-oFiles

I'm trying to accomplish this one command and this is what I tried: sudo cp /hw2/ladsrc/.c[a-g] /hw2/a-gFiles What am I doing wrong here?
9
votes
2answers
4k views

How to close a tmux session

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. I know that I have to use the prefix (for me it is ctrl+a) to enter commands. How can I ...
1
vote
1answer
93 views

what is the difference between umask and chmod

I am completely confused between umask and chmod. Both are used to give permissions to the files. But where exactly is the difference and when to use them. I have read the online documentation but ...
39
votes
7answers
36k views

Unix zip directory but excluded specific subdirectories (and everything within them)

I'm trying to zip a directory (on Unix via SSH) but I need to exclude a couple of subdirectories (and all files and directories within them). So far I have this: zip -r myarchive.zip dir1 -x ...
12
votes
7answers
18k views

How can I sort all files by size in a directory?

How can I display the files in a unix directory sorted by their human readable size, going from largest to smallest? I tried du -h | sort -V -k 1 but it does not seem to work.
0
votes
0answers
12 views

Fullscreen TMUX sessions selection

I've found TMUX's choose-tree command to be quite useful when navigating between sessions, but I dislike it only displaying inside of the current pane. I'd prefer it to overtake my entire screen. ...
3
votes
4answers
4k views

How to close all background processes in unix?

I have something like: cd project && python manage.py runserver & cd utilities && ./coffee_auto_compiler.py And I want both of them to close on Ctrl-C (or some other command). ...
1
vote
2answers
3k views

localhost in sudoers

There is no chance of an internal attack, so I would like to give sudo privileges to users at the local computer using sudoers. I tried these lines separately: %admin localhost=(ALL) NOPASSWD: ALL ...
0
votes
0answers
45 views

ignoring No data available (61) errors with rsync

Is there a way to supress a warning where the prigin changes during the rsync? $ rsync --archive server::somemodule/ /dest/dir rsync: read errors mapping "/somefile" (in somemodule): No data ...
19
votes
8answers
16k views

How to run commands as in a queue

I need to do a lot of copying of various files to various folders. I can add all my copy commands to a bash script and then run that, but then I must wait until it finishes if I want to add more ...
2
votes
1answer
2k views

tcpdump - rotate capture files using -G -W and -C

I'm looking to be able to capture a rotating tcpdump output which captures 30-minutes worth of data, into 48 files, cyclically. The man implies this should be possible, but my testing doesn't seem to ...
157
votes
10answers
136k views

How to copy with cp to include hidden files and hidden directories and their contents?

How can I make cp -r copy absolutely all of the files and directories in a directory Requirements: Include hidden files and hidden directories. Be one single command with an flag to include the ...
0
votes
2answers
78 views

Rename CSV header using command line tools

Given a CSV file, h1 h2 h3 a b c z x b how to rename the first header to One and the third header to Three using command line tools, namely One h2 Three a b c z x b
5
votes
3answers
4k views

Vim open file at location that was last viewed

When I close a file in vim and reopen it, the file opens at the start of the file. Is there anyway to make the file open at the last place the I viewed?
216
votes
8answers
231k views

What is the “You have new mail” message in Linux/UNIX?

Sometimes, when I log into a box and 'su' to root, I get a cute little message saying I have mail (thank GOD it's not AOL). Where is this mail? What does it contain? Who/What sent it? How important ...
0
votes
0answers
14 views

Increase size of /var /usr /etc

df -h Filesystem Size Used Avail Use % Mounted on /dev/root 20G 788M 18G 5% / devtmpfs 16G 4.0K 16G 1% /dev none 4.0K 0 4.0K 0% /sys/fs/cgroup none 3.2G 532K 3.2G 1% /run none 5.0M 0 5.0M 0% ...
0
votes
4answers
347 views

Split text stream by hash value of first field in line

I am looking for a fast filter that will take a text file on standard input, hash each line up to the first tab character, and put the line into a different file depending on the hash value (modulo ...