Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [terminal]

Terminal: 1) A device or program used to talk to a terminal server, usually over Serial or RDP, 2) A synonym for command-shell or command line, 3) A specific OS X program.

0
votes
1answer
37 views

bash does not show prompt (prompt missing)

I have a server that does not show standard bash prompt, after I log out from the machine. If I ssh to this server, I can do all operation there (e.g. ls, cwd, etc) Tried to reinstall bash (sudo apt-...
0
votes
0answers
26 views

mysqld_safe --skip-grant-tables exits before i can type mysql-u root to rest root password

Made some simple mistakes--don't have backup for my server, and uninstalling/reinstalling in several different manners hasn't helped. I've attempted a few shell scripts to slow the processing of the "...
2
votes
2answers
57 views

Why does writing to the console a process's STDIN is attached to doesn't send input to the application itself?

Taken from this answer: Terminal 1: [ciupicri@hermes ~]$ cat shows on the tty but bypasses cat Terminal 2: [ciupicri@hermes ~]$ pidof cat 7417 [ciupicri@hermes ~]$ echo "shows on the tty but ...
0
votes
1answer
42 views

Putty Wyse60 emulation

I have AIX (v.7) box and using TinyTerm app. However Id prefer to use Putty instead. Problem is I do not have there proper key mapping - I miss there Wyse60 emulation. Is there any way to configure ...
2
votes
0answers
46 views

What are the differenced between SuperMicro console terminal types ANSI, VT100 and VT-UTF8

I tried to find a comparison between various terminal types configurable on SuperMicro console to serial BIOS redirection but I was not able to find any. Can someone make a brief comparison of these? ...
0
votes
1answer
66 views

differences % and $> command line result end of line

For an exercise, I had to make a file print_groups.sh. When I do sh print_groups.sh the result should be a list of groups of $USER separated by a comma. I had two different attempts: groups $FT_USER ...
-2
votes
1answer
209 views

Random Sleep in Crontab/Terminal [duplicate]

I want in terminal or in crontab(both) be able to put a random time. Something like Sleep $(1-300) pkill screen && ./start just a random simple example
0
votes
0answers
24 views

The simplest test for a dumb terminal (VT525)

Having read a lot of answers here and on the raspberry pi SE site I can find nothing wrong with my configuration or my cable. The final conclusion is that I have a bad terminal. Is the quickest test ...
-1
votes
2answers
53 views

how to get file download connections on linux

I have a site with video content (mp4 files). When people are watching videos, they are downloading video files from my site. I want to know the number of the active connections via the linux ...
0
votes
0answers
104 views

Fix terminal when it doesn't do carriage return

Every so often, a terminal will get confused and screw up newlines. For example, when you hit return, the cursor will go one down, but not back to the left. Another symptom is up-arrow doesn't go back ...
1
vote
0answers
303 views

Outlook on Terminalserver loses connection. Event ID 26

Problem Symptoms: Users experience daily disconnects and reconnects in Outlook running on a Terminal Server and have to log in again. They can not log in instantly but have to wait for approx. 1 ...
2
votes
1answer
87 views

AWS - Get Windows password for EC2 Instance

I'm trying to receive the default Windows password so I can RDP into my EC2 instance. According to the AWS documentation, it's just as simple as sharing the contents of the Key Pair that used during ...
1
vote
3answers
248 views

Solaris 11 find empty folders (-empty not work)

How to find empty dir and delete in Solaris 11. I try this: find . -type d -empty Output: find: bad option -empty find: [-H | -L] path-list predicate-list
0
votes
1answer
49 views

OpenSSH client works, but Putty can only receive data

There is an application with a custom SSH interface that authenticates then launches a command line utility. It works as expected using OpenSSH's Client: Login Prompt -> Username/pass <- Main ...
0
votes
1answer
93 views

How to display processes using memory between an interval? (in bash)

How can I display processes that are using memory between an given interval in terminal? For exemple: processes that are using between 50 and 100 MB of Memory. I tried: ps aux | awk '{print $4}' | ...
0
votes
2answers
3k views

Install Apache to CentOs 7 installed but not showing in the browser

I hope someone can help me, I am trying to set up a VPS, i have a small VPS to learn on before i use my main VPS. Ok so, I have installed Apache without any problems and when i try " sudo service ...
2
votes
2answers
772 views

Change directory to “This PC” / “Computer” from .BAT batch file

I'm using a batch file to automatically launch a software at login. This software maps a remote drives to which one letter is assigned (R:) and opens the file explorer to R:. I would like to append a ...
-3
votes
1answer
652 views

How to Find and delete File Older than 3 years?

I'm new with server maintenance job. Now I must find and delete .JPG File older than 3 years. on linux terminal I have googled and found a script like this find /path/to/files* -mtime +365 -exec rm ...
0
votes
1answer
77 views

ssh text out of sync when OS X > ubuntu > amazon linux via iterm2

I am frequently running into an issue where the text on my screen is out of sync with the cursor. As you can see here, and here, when I hit backspace, it thinks that it is the (left) end of the line,...
1
vote
3answers
76 views

I want the bash script to echo only if I execute and not echo if executed by a cron job

I want to echo to the terminal if the script is being executed by me, in the flesh or I want to echo to a log file if it is being done via a cron job. Ubuntu 16.04 example: #!/bin/bash if [ ***** ]...
2
votes
1answer
875 views

pgadmin won't connect to Postgresql via ssh on macOS

I am trying, with no success, to connect pgAdmin 4 to my Postgresql installation on Linode using ssh tunnel as specified in https://linode.com/docs/databases/postgresql/securely-manage-remote-...
1
vote
1answer
1k views

After installing RDS on WinServer 2016 I still can only connect with two users?

What I'm trying to do: I have a software that multiple users are supposed to use on one system. Because a standard installation of WinServer2016 can only hold a maximum of two users at once I googled ...
0
votes
1answer
25 views

Change/add text to current user@server [closed]

Its kinda hard to pick a good title, sorry for that! When you login to Linux, you see the user and the domain where you can type your commands. [user@location domain.nl]$ mv ~/example ~/my-new-...
0
votes
1answer
876 views

linux + tput: No value for $TERM and no -T specified

I use in my bash script the tput command in order to colored the text as tput setaf 2 when I run the script from putty or console every thing is ok but when I run some external WIN application ...
0
votes
0answers
94 views

Cannot connect to OpenVPN server under Ubuntu 14.04 (from terminal), but all is fine in Windows

In Windows all is ok. In Ubuntu I run command sudo openvpn --config client.ovpn and get TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) ...
0
votes
2answers
149 views

Sed command to replace code in every files

sed -ri '1 s/.*<\?php \$xgzdxgn.*\$tdjwdrzy.*\$vbtpmtzqq-1; \?>//g' *.php How to run this command on folders and sub-folders in a single command ( for all php files ). when i try to use this ...
1
vote
2answers
35 views

Linux CentOS-7 give a certain user acces to only a certain file path

I would like to give a created user a new home directory and have him only be able to access that certain home directory, however, the directory the user is supposed to access has already been created ...
1
vote
3answers
3k views

How can I launch gparted in centos 7 minimal

I have already installed gparted because I want resize some partitions on a box running centos 7 minimal. So I can ssh into the box and only have access to the terminal. I run the command gaprted to ...
0
votes
1answer
50 views

Displaying multiple terminals in a single window

I'm trying to setup a dedicated computer for displaying server statuses, and I'd like to showing the output of htop for about 5 servers simultaneously in a grid of terminals. What's the most ...
-3
votes
1answer
101 views

Recursively removing the content of a directory but not a directory itself [duplicate]

I have a directory which contains other directories and files of unknown depth. How can I delete only the content of the directory -- nested directories and files -- but not directory itself? I've ...
2
votes
1answer
5k views

Terminal Server 2016 RemoteApp Create Windows Installer Package

I'm working on migrating our current terminal server (Windows Server 2008 R2) to a new server with Server 2016. I've installed all the roles on the new server and setup my apps. Works perfectly (...
-5
votes
1answer
55 views

“date” returning a month as a 3-char word [closed]

At the moment I call date this way: date '+%Y %m %d' # ==> 2017 12 01 How should I adjust it so that it return a month in the 3-char format? Like this: date '+%Y %m %d' # ==> 2017 dec ...
1
vote
0answers
1k views

What is RDSAppXPlugin?

In windows 2012 event viewer in the "Applications and Services > Microsoft > Windows > TerminalSerices - LocalSessionManager > Operational" path I can see the following event: "Plugin RDSAppXPlugin ...
0
votes
1answer
6k views

How to access FTP server in terminal using proxy?

I have Ubuntu 16.04 installed on my pc. My network require http proxy to access the internet. Say Proxy is "xxx.xx.xx.xx" and port is "8080". I set up system proxy for http, https and ftp. I am able ...
0
votes
1answer
74 views

ssh -N steals keystrokes

When I run an ssh session purely for tunnelling purposes, I start it like this: ssh -N -L 5432:localhost:5432 user@host & However, when I do so, about every second keystroke in the terminal ...
35
votes
1answer
2k views

Recover a running script from a terminal session

So I'm using GNU Screen to manage multiple running scripts/programs. The multiplexing & detachability is quite helpful. I removed a script from disk and now I'm having some trouble finding the ...
8
votes
6answers
2k views

How can I watch a terminal window remotely?

I left the office earlier with an active terminal window running a script on a Centos 7 server. Now I've SSHing in from home and I want to see where it's got to. Is this possible? Can I rejoin the ...
0
votes
3answers
497 views

nohup daemon process dies when terminal is close

I'm trying to copy the contents of a remote server to my local computer. Here is the command that I'm using: nohup rsync -chavP -e 'ssh -p 23' --stats user@ipaddress:~/great/stuff /volume1/code > ~...
2
votes
0answers
1k views

kafka docker - ERROR when sending a message

I would like to implement kafka in a docker container. I use the official zookeper instance for kafka as docker container, too. When I want to write a message about the terminal, on my linux mint 18....
-1
votes
1answer
208 views

FTP connection is succssful via finder in mac, but not through filezilla and terminal

Modifying my question. There are 2 issues : 1) FTP server in windows server 2012 R2 does not work. I went through most of the articles and forums and discussion regarding 1st error. But when i try ...
0
votes
1answer
212 views

Redirect output to /dev/tty1 outside chroot jail?

I couldn't figure out exactly how to word this in my searching; if someone could tell me what this is called and point me to a resource I would greatly appreciate it. TL;DR: For a CentOS installation,...
0
votes
1answer
1k views

How to check my .pem certficate's passphrase in a terminal?

I had to convert a .pfx certificate into a .pem certificate. However, following a bug I am working on, I am wondering whether the .pem's passphrase has been set properly. How can I check this easily ...
1
vote
1answer
129 views

Easing terminal sizing on OpenVMS

Being somewhat green with OpenVMS, but still trying to "get stuff done", I'd like to make things a little easier in respect of setting terminal height and width. Presently I can SSH to an OpenVMS-8.4-...
-1
votes
2answers
479 views

Remove “Cc: ” from mailx command

I have recently setup a mail server on my Ubuntu Desktop 16.10, and I made a script that when a specific user logs in, they will execute the script instead of bash. Here is the script: #!/bin/bash ...
0
votes
1answer
555 views

How to use find to delete hidden files and folders

How can I find and delete all files, including hidden ones, that do not not have the extension java. I know how to use find to delete files and run this command: find . -not -name "*.java" -type f -...
1
vote
1answer
116 views

Interacting with a program running as part of a systemd service

I've got a systemd service set up with the following configuration (in /etc/systemd/system/my-service.service): [Unit] Description=My service [Service] WorkingDirectory=/path/to/my/service User=some-...
1
vote
1answer
633 views

FreeBSD 10.3 + zfs - character set incorrectly displayed in terminal

I have a server with a samba share on zfs filesystem. Filenames are in hungarian. When I login with ssh, then the file names are diplayed incorrectly in the terminal: If I do an auto complete on the ...
0
votes
0answers
136 views

SSH forced pseudo-terminal dimensions

I am in the unfortunate position of having to automatically use an interactive program via SSH. Obviously, there won't be a terminal available, but luckily SSH allows me to force it to allocate a ...
-2
votes
2answers
71 views

Shell Scripting in Linux

How can I move few files that contain spaces to another directory using a bash script? file name: "Sublime Text 3.x" my code is : for file in $(ls -t | tail -n +1) do mv $file /tmp/test done ...
-4
votes
2answers
3k views

how to compress a files inside a shell script file?

I have seen a .sh file on execution in terminal it extracts some jar files inside the sh file, how to create such sh files? i could not open that sh file in normal gedit to check the content. Is ...