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
1answer
3 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
8 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
24 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
36 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
1
vote
2answers
14k views

scp error: “Permission denied (publickey). lost connection”

I tried to scp an svn dump to savannah, but I got the following error at the end. Permission denied (publickey). lost connection The scp command and verbose output are below. Any ideas? ...
0
votes
2answers
19 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
25 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 ...
9
votes
14answers
3k views

Is there a Unix-y tool for taking notes on the command line? [on hold]

I'm looking for something really quick and simple: type note <title>, start writing, and exit. Ideally with a simple list to jump to a specific note. Is there such a thing?
0
votes
0answers
10 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?
0
votes
0answers
4 views

Move a directory and its contents up several levels

I have a directory with text files in /user/data/tutorial/texts/ and I'd like to move the directory Folder2/ with all of its contents to /user/. How should I go about this using unix commands?
2
votes
1answer
65 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 ...
-3
votes
0answers
19 views

What are the best (or well known) Linux or UNIX certifications? [on hold]

I've been reading online and a lot of people seem to think that certifications are useless in the software engineering field. However, I've been thinking of getting a certification in Linux or Unix ...
4
votes
1answer
57 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" ...
-1
votes
0answers
15 views

How to delete a directory in unix using Runtime.exec() / ProcessBuilder in Java?

I am unable to delete a directory in unix using the command "rm -r path". I also tried to at first delete all files inside the directory and then delete delete the directory itself but the commands ...
0
votes
0answers
23 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
14 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: $ ...
0
votes
1answer
11 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
10 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 ...
-1
votes
0answers
21 views

Unix/Linux email notification

echo "This is the body" | mail -s "Test POC Mail" $sender_mail echo "Mail is sent" when I run this script, it is giving the last statement in the console but am not receiving the email and I set the ...
36
votes
3answers
26k 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
33 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. ...
-2
votes
0answers
18 views

Unix script to merge two tables

I am having a hard time creating a code in Unix. File1 Column1 Column2 Column3 Column4 DFPN 53011 A1 TPI DFPN 11401 B3 DIO DFPN 51401 A7 INP ...
3
votes
1answer
3k views

Need to copy a file from unix box to windows folder using pscp command

I have a unix svr A: username: uname password: pwd then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username ...
1
vote
1answer
555 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
5 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
15 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
27 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
12 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
34 views

Check if samba down from a Linux client

What is the most effective way to check Samba server availability from a Linux client?
0
votes
1answer
16 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
8k 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
32 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
394 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
479 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
122k 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
96 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?
0
votes
1answer
4k views

ksh Auto-Completion PuTTY Configuration

I'm having a bit of a problem configuring my PuTTY client to work with the auto-completion feature in the ksh shell. I do a listing on the root with the directories /home and /homeroot and it returns ...
8
votes
2answers
3k 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 ...
0
votes
2answers
3k views

Convert PDF to JPG without Imagemagick

Is there a way to convert a common UTF-8 encoded PDF to a JPG without using ImageMagick or Ghostscript? The reason I'm asking is, that I have to replace or "simply" double layer a small part (date) ...
1
vote
1answer
24 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 ...
33
votes
7answers
31k 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 ...
0
votes
0answers
20 views

Can a Linux user have multiple primary user groups? [migrated]

How many primary groups can an individual Linux user have? If they can have more than one, how does one go about assigning multiple primary groups to a user?
0
votes
1answer
36 views

quickly find argument description in unix man page

How do I jump exactly to the definition of an option within a man page? Example: try to find what -L means when performing man curl. Naive approach: /-L requires 5 ns (nexts) before I get to the ...
11
votes
7answers
15k 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
9 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 ...