Questions tagged [command-line-interface]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

Filter by
Sorted by
Tagged with
0
votes
1answer
38 views

Why is my database not deleted?

I have seen in several tutorial that the "DROP" command will drop the database, but it is not deleted. Why is my database not deleted ? mysql> DROP DATABASE www_example_com; Query OK, 645 ...
0
votes
0answers
23 views

File is being edited (by root with nano 2.5.3, PID XXX) - is it possible to fix this without a reboot?

Sometimes I existed the console accidentally with command + W and it produces that message when I want to edit the file again. I deleted the .save file and it still produces that message. It only goes ...
0
votes
1answer
25 views

How to get URLs for requests currently served by Nginx?

As the title explains, I want to know the URLs for requests that are currently being served by Nginx, all the answers regarding nginx_status endpoint talk about the number of requests, if possible I ...
0
votes
1answer
19 views

Executing Remote commands on target machine via WinRM in workgroup environment

I'm looking forward to run special commands on a target machine in my local network (workgroup, no domain join). The machines have been previously configured with Enable-PSremoting etc.. to tolerate ...
1
vote
1answer
40 views

Can't set open files limit for user www-data and process PHP in ubuntu 16.04

I am having trouble setting the open files limit for user www-data and process PHP in Ubuntu 16.04. I have set all the following to 65535: /proc/sys/fs/file-max /etc/sysctl.conf /etc/security/limits....
0
votes
0answers
21 views

Login to Windows 10 through OpenSSH Server As Regular User gives Administrator Privileges

I have installed OpenSSH server on a Windows 10 system and added my public key to the file at C:\Users\foo\.ssh\authorized_keys. However, when I log in to the Windows account using SSH and created a ...
2
votes
1answer
47 views

CentOS command not found

When I login to my CentOS 7 Server I get a couple of errors. Similar command is: 'tty' bash: ls: command not found... Similar command is: 'lz' /usr/libexec/grepconf.sh: line 5: grep: command not found ...
0
votes
0answers
87 views

How do I find the ProtonMail Bridge PID file on my server?

I installed Monit on my server, as well as the "ProtonMail Bridge". I followed the following tutorial : https://pychao.com/2020/06/10/update-on-using-protonmail-bridge-on-headless-wordpress-...
0
votes
2answers
92 views

How do I locate a service on my server?

I installed Monit on my server, as well as the "ProtonMail Bridge". How to know the path of the "ProtonMail Bridge" service to add it to Monit ? ubuntu@www-example-com ~ $ ps -ef ...
0
votes
1answer
33 views

Powershell returns access denied on non-os files used by IIS site

I am connected as a local administrator using RDP to my WIN2K16 server, and manage it using gui and powershell. Overall I have full control over the machine, and never had permission errors using both ...
2
votes
2answers
120 views

InfluxDB 2.0 | Backup results in `read:dbrp is unauthorized`. How to migrate bucket data?

We are running an InfluxDB 2.0 instance in a docker environment. For some weeks we have collected data using telegraf and store them into a bucket. Now, we would like to do a backup of our data. What ...
0
votes
1answer
24 views

How can I monitor cli commands on one machine and execute them on another in real time?

I'm trying to make a highly available topology, by executing all of the cli commands that have been executed from one machine to another - Doing this will syncronize their configurations. Therefore, ...
0
votes
1answer
41 views

Execute a Program On Remote And Send Back Resulting File

we have a powerful server to compile any code on it. For reasons, I am generally not allowed to copy my files to the server, and when I can, I can only use /temp which will be deleted after a reboot. ...
0
votes
0answers
16 views

Create user - map network drive CMD

I have a pipeline which I want to do automatically (probably with a bat file) without the need to do all steps manually on my windows 10 machine. Pipeline steps: Create a normal user account e.g ...
-1
votes
1answer
87 views

Basic setup of an Aerohive AP245X via CLI

I recently acquired an Aerohive AP245X (Rev. A) secondhand without a GUI of any sort. I reset it by pressing the button for however long. Now I want to set it up as a normal Wi-Fi router w/o any ...
0
votes
1answer
106 views

Programatically managing groups & users in Gsuite via the API

I have a script that leverages the gcloud tool to create service accounts for a project. I'd like to be able to create Gsuite groups and add the service accounts to them within the same script as ...
0
votes
2answers
93 views

I'm getting Permission Denied when redirecting output from CMD to a text file using the logitech_dfu tool

I've gotten this output using this command you see here from the Logitech instructions, and using the ">" operator before the file names in said command. It errors, and does not place anything in the ...
0
votes
0answers
57 views

Cannot connect to SSH for AWS EC2

I can't connect to my AWS EC2 Ubuntu server using SSH. Every time I want to connect using SSH, it gives: $ ssh -i key.pem ubuntu@[IP Address] Connection closed by [IP Address] port 22 With -...
0
votes
2answers
1k views

Powershell script : Set-ADUser -clear with multiple attributes in variable

I want to clear multiple attributes by using variable in Powershell script (version 5.1.17763.1007) It's work : Set-ADUser -Identity $($user.SID) -Clear Initials,info It's work also: $emptyParams='...
0
votes
0answers
40 views

How can I run a scheduled task on domain controller whenever a domain user logs into the domain?

I need to log domain user logins & logouts to an Oracle database. Not all computers have Oracle drivers, but one of the domain controllers does. So I have created a script which writes the ...
1
vote
2answers
122 views

How to check IPv6 address via command line?

How do I check the IPv6 address via command line? For IPv4 I simply use: curl ipinfo.io/ip This doesn't work for IPv6.
0
votes
0answers
259 views

How to run openstack components' cli without SSL validation?

(I use IPv6_Address instead of real IP address) .openrc setting: export OS_CLOUD=mycloud export OS_USERNAME=myusername export OS_PASSWORD=mypassword export OS_PROJECT_NAME=myproject export ...
0
votes
1answer
24 views

CentOS 7 escape “-r”

I am using CentOS 7. I have a folder name "-r". This happened accidentally when I executed a tar command. I need to remove this folder but somehow -r option is taken as switch to the commands rm,...
0
votes
0answers
18 views

How to use cinder command even set environment for it?

I have set environment for openstack: cat ~/.openstack/openrc.sh export OS_CLOUD=mycloud export OS_USERNAME=myuser export OS_PASSWORD=mypass Define OS_CLOUD as: mycloud: identity_api_version: ...
1
vote
0answers
111 views

systemd-networkd: Set DNS via CLI for managed link

I want to set the DNS for an interface managed by systemd-networkd via cli. The file system is mounted read-only, so is there way to achieve this without manipulating any files? I tried e.g.: ...
2
votes
1answer
1k views

Check 'effective permissions', 'effective access' from command-line, Windows/NTFS

How do I mimic Advanced Security Settings 'Effective Access' tab in command line (Win10 notably)? Prefer built-in tools, I'm about to evaluate if sysinternals AccessChk can accomplish this icacls ...
1
vote
1answer
32 views

Rename file with invalide filename

I have a buch of files on a Linux machine that are using invalid filenames. I tried using the "detox" ultility, as well as convmv and recode, but they keep failing with the error recode: fopen (Entw�...
0
votes
0answers
139 views

Using binary from docker container on a host

I am trying to seed a [DB2] database running inside a docker container, with a script sitting on the [MacOS] host. My problem is that when I run the seeder on the host, it wants to execute db2 command/...
1
vote
1answer
63 views

How do I convert a plaintext file to a PDF on the command line on Windows 10 without paying money? [closed]

All I want is to turn a .txt with a proportional font (monospace/Courier New/Fixedsys/whatever) and fixed column width (80 chars) to be turned into a correct PDF document, so that it can be printed or ...
0
votes
0answers
190 views

How to create a Sandbox Environment in AWS?

I am trying to create a Sandbox playground in AWS for Users to practice some resources for 30min, after that, all resources should be deleted and account temporary account should also be deleted. I ...
-1
votes
2answers
196 views

df -kh command in linux is showing 100% storage but df -i showing 18% storage why it is happening?

Output of df -kh [root@mavdu ~]# df -kh Filesystem Size Used Avail Use% Mounted on /dev/sda1 2.9G 2.9G 0 100% / devtmpfs 5.7G 0 5.7G 0% /dev tmpfs 7.7G 0 ...
0
votes
2answers
67 views

Tag/Trunk Cisco 350x

I am pretty new on the networking and cisco world. As far as I learned, tagging is just assigning a port to a vlan, and, as per definition, trunking is assigning a port to more than one vlan I am ...
0
votes
0answers
29 views

3PAR 7400 cli setup

Unfortunatelly we don't have a GUI so we use cli. How to allocate physical disk space to free space? I tried servicemag, admithw,admitpd cmd but freespace (showspace) is equal 0 3PAR01 cli% showsys ...
1
vote
0answers
38 views

Terminal command to show a specific line extract from the output, along with the full output

I have a build command that outputs a lot of content, and within it, there's a link that I need to copy & paste. So I'd like to be able to do some terminal acrobatics so that this command does ...
0
votes
2answers
71 views

Is there a command to physically identify a particular Allied Telesyn switch in a rack among multiple switches?

I have several identical older Allied Telesyn switches (model AT-FS8326) mounted in a rack without any labeling. I know their IP addresses and I have the access to their CLI over the SSH protocol. I ...
-1
votes
1answer
247 views

Is there a TeamViewer like service for command-line access to a Window desktop?

I want to connect to a remote Windows 10 Desktop computer via the command line. I know I could install an SSH server, but then I need to configure the router, or a VPN. Is there a service (preferably ...
0
votes
0answers
286 views

How to stipulate ufw ICMP/ping rules from the ufw(8) command line in Ubuntu Linux?

How can one stipulate the following ICMP/ping-oriented rule (which works when inserted into /etc/ufw/before.rules) from the ufw(8) (UncomplicatedFirewall) command line instead of the /etc/ufw/*.rules ...
0
votes
1answer
63 views

Ubuntu command line, not recognizing common commands and permission errors as well

I am facing a very weird problem, just cannot put my finger on it. I am migrating my website from shared hosting to a self-managed VPS on AWS LightSail. I tarballed the entire public_html directory ...
0
votes
0answers
211 views

expand RAID array with storcli

I replaced small HDDs with bigger HDDs, so that my RAID10 virtual disk is now showing freespace. The two respective underlying RAID1 arrays are also showing freespace. I am now trying to expand the ...
1
vote
0answers
97 views

How to disable global 2FA policy with CLI

I would like to ask if it's possible to disable the global 2FA policy (everyone need to activate 2FA before accessing gitlab) but I can't disable on the web interface because I can't activate it, it ...
0
votes
2answers
34 views

Bash run a program and repeatedly pass it data

I need to write a bash script to run a program and then every 5 seconds pass data to this program. The program accepts command line input and then will return some data. I currently have ./a & ...
0
votes
1answer
30 views

Interpretation of asterisk on command line - permissions?

Ubuntu 16.04.6 LTS A weird one at first, but I think I narrowed down my issue to a question of permissions and how asterisk(*) is interpreted on the command line because of it. I was originally ...
0
votes
0answers
201 views

Arista 7048T-A Enabling ethernet ports, interface does not exist

On the switch I'm trying to enable the ethernet ports for internet access to no avail. After setting the DNS, Default gateway I'm now trying to enable 2 ethernet ports on the switch (port 1 and 2 but ...
0
votes
1answer
445 views

How to access Arista switch login?

I have an Arista 7048T-A switch that needs to be set up. However I can't seem to access the login prompt for the switch. I'm using PuTTY over serial connection. What i mean by not being able to access ...
1
vote
1answer
559 views

AWS CLI to get list of instance from

How can I get list of all Instances running under multiple Accounts by using Aws CLI I have my profile configured, need assistance with looping, assume roles and than write output in a file Cheers
0
votes
3answers
3k views

How can make changes to my smb.conf file go live without a reboot?

On our Centos 7 server, I added create mask = 770 to my smb.conf in order to force permissions on the files our Windows users store in a directory. Then from the command line, I entered the following:...
0
votes
0answers
37 views

AWS CLI S3 access with V2 signing

I have a requirement to access data in an S3-compliant object store backed by DDN WOS. Due to particular circumstances I'm having trouble getting vendor support. The recommendation is to use s3tools/...
2
votes
1answer
120 views

How do I enable or bond the 80MHz channels on a Cisco 3502i AP in autonomous mode?

I have a Cisco AIR-CAP3502I-A-K9 using F/W ap3g1-k9w7-xx-153-3.JF5 in autonomous mode. I have tried everything I can think of (Google has NOT been my friend) to configure the 5GHz radio to use 300MBps?...
1
vote
1answer
31 views

Desktop To Command Line Toggle for Default Command Line Environment? [closed]

[Fedora 30 Webserver] I am wanting to use MySQL Workbench and Wireshark (amongst other things) on my server, but neither of those two programs can be made to work on the command line; so what I am ...
0
votes
0answers
17 views

CLI & PHP: file running successfully but not creating or updating file

Running Ubuntu web server. I have a PHP script that creates a sitemap file based on database entries. If I run the file directly, it works and creates the sitemap.xml file as expected. I'm trying to ...

1
2 3 4 5
31