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.

419 questions
0
votes
1 answer

Script executes perfectly in command line but failing in cron

I have created a script to know the successful attempts and failed attempts of users,usually everyday the /var/log/secure file goes to syslog and zipped like "secure-20200910.gz" but without extracting the file i want to read the data, for that i…
Naveen
  • 1
0
votes
1 answer

Bash Script terminates when shell terminal is closed

I'm able to successfully run the script below from a terminal in ubuntu 14.04. However, when I close the terminal the vlc process also terminates which I don't want. I've tried using "&" so that it runs in the background, but to no avail…
Malanie
  • 5
  • 2
0
votes
1 answer

Get all files using FTP via Unix Terminal

Using the FTP command in the Unix terminal I want to download all files / folders from my FTP server. When I use this command: ftp> mget * I get lots of these errors: ftp: Unable to determine real path of `subdomains': No such file or…
Ben Everard
  • 599
  • 3
  • 7
  • 22
0
votes
0 answers

Read files from an encrypted disk?

Is it possible to read from an LUKS-encrypted disk via the terminal, e.g. by booting from a live Linux system on a USB flash drive and accessing the encrypted host computer's hard drive?
david
  • 101
  • 1
  • 3
0
votes
1 answer

Getting two different results when 'cat'ing a file, and 'cat'ing a file into a variable in zsh?

The file in question is /sys/class/power_supply/BAT0/status. When I cat it, I receive Full. But when I do status="$(cat /sys/class/power_supply/BAT0/status)" and then echo status, I receive 1 when I want it to output Full. I'm sure I'm just being an…
LTWood
  • 25
  • 5
0
votes
1 answer

Change background color in dialogs bash

I have a server (without GUI), I would like to create a box message in the tty. Is this possible? Getting the example of htop command UPDATE…
Mr Brown
  • 21
  • 1
  • 2
0
votes
2 answers

Change linux shell

On my Centos7 Server I have different shells for my users. For example the terminal as root looks like: [root@hostname www]#. The terminal as a different user looks like bash-4.2$. If I type echo $0 to get the currently-used shell, I get /bin/bash…
Jonas Heinze
  • 43
  • 1
  • 9
0
votes
0 answers

Why is there an error on running host program using git bash terminal?

I am using git bash as a terminal to run code. I doing a course where it has asked us to use the host program to look up host names using DNS. However when I run nslookup it works fine. screenshot of error running host command
Mishal
  • 101
  • 3
0
votes
2 answers

Moving files from one folder to another based on specific condition

I have hundreds of thousands of folders of photos. For whatever reason on the export they created several scenarios like this: 2019/01/01 2019/01/01 #2 How do I write a linux command (ideally which can be run on Mac) which can automatically move…
Jimmy
  • 269
  • 4
  • 7
  • 23
-1
votes
1 answer

Deleted users still apear in terminal output

ubuntu 16.04 lts After creating a user with useradd sudo useradd -G sudo -m -d /home/user -s /bin/bash user and then deleting it with `sudo deluser user` the user still appears after typing ls -l /home Shouldn't it be gone? output of ls -l…
loophunt
  • 21
  • 2
-1
votes
2 answers

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 terminal. They are probably TCP packets on port 80.…
KoSMoS
  • 99
-1
votes
1 answer

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 to connect to FTP to the server via safari browser,…
Praneeth
  • 21
  • 1
  • 1
  • 4
-1
votes
2 answers

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 while [ true ] do echo -n "To: " read To …
MaliciouZzHD
  • 1
  • 1
  • 3
-1
votes
1 answer

is there a way to pretty print the output of "ps" to include the "rss" memory value?

I have a python script which takes in processes in csv format and decides things based on what's running, it's name, and how much cpu time it's using. I would like to add processes that also use lots of memory to said script. The problem, however,…
Rusty Weber
  • 472
  • 8
  • 21
-1
votes
1 answer

Customizing PATH for .zshrc

In my user's composer folder I have 2 executables... $ ls ~/.composer/vendor/bin/ envoy homestead I'm attempting to modify my PATH variable for oh-my-zsh so that I don't have to customize the path to this every time. I've modified the PATH…
Ben
  • 3,800
  • 18
  • 65
  • 96