Questions tagged [command-line]

Questions about using the command-line interface (CLI).

Filter by
Sorted by
Tagged with
-2
votes
1answer
296 views

Why does my terminal look like this?

When I maximize the terminal, the display becomes like this and text won't expand to entire screen. All the content/text is only visible on top left side of the window while it's maximized. All the ...
-2
votes
2answers
155 views

Command to list only output files of gcc operation? [closed]

I have a directory with many c programs and some other files. After performing gcc -o output_name filename.c on c files i have respective output files in the same folder. What terminal command and ...
-2
votes
1answer
545 views

Why do we have to call `sudo apt-get update` more than once for Ubuntu? [duplicate]

I sometimes see update commands for Ubuntu which make it twice as this sample sudo apt-get update && sudo apt-get upgrade I wonder why do we have to call it twice like that? Why not just ...
-2
votes
1answer
3k views

syntax error near unexpected token `newline' in .bashrc [closed]

I'm trying to add script function proxyset() { proxy_enabled=true NO_PROXY_DOMAINS=".abc.com," LOCAL_ADDRESSES="localhost" USER=<USER_ID> PASSWORD=<...
-2
votes
1answer
123 views

Why does `//` only display for first level directories? [duplicate]

For the root directory a // will display in the prompt: ─────────────────────────────────────────────────────────────────────────────── rick@alien:~$ cd / ─────────────────────────────────────────────...
-2
votes
3answers
668 views

How to login to a website from another system through ssh [closed]

I'm new at this system. In my University to access the internet, we need to login to the server using our LDAP id. As in the link: We will automatically get signed out after a particular time. I ...
-2
votes
3answers
99 views

Another “launch program from terminal” question

Answers from previous question are not working for me. When I type: simplenote ./simplenote ./simplenote-1.0.8 /home/quazipseudo/Desktop/simplenote-1.0.8 ./home/quazipseudo/Desktop/simplenote-1.0.8 ...
-2
votes
2answers
11k views

Using APT on Android Termux (terminal emulator) to install Ubuntu packages? [closed]

The Android termimal emulator, Termux, includes APT, but I am not able to install many packages with it. Mostly, I get: E: Unable to locate package (name of packages) I wonder if I can use termux or ...
-2
votes
1answer
9k views

apt-get update and apt-get install update [duplicate]

What is difference between apt-get install update and apt-get update? Also apt-get install update not working for me, don't know why. output of apt-get install update Reading package lists... Done ...
-2
votes
1answer
621 views

When I use the xdg-open command on a particular file it gives me > on the next line

I am opening a program with the command xdg-open file. I use this command a lot so I don't think this is a typing error. When I try to open this file it just gives me > on the next line and no ...
-2
votes
1answer
668 views

How to supply password through command while performing SSH login? [closed]

I want to perform SSH login to a machine by directly supplying password through the command line like the way we do for executing sudo commands as shown below: echo mypass | sudo -S sh -c 'echo "...
-2
votes
1answer
2k views

What xargs does exactly?

I don't understand exactly what xargs does that's why I'm surprised why these 2 return different results: find ~/Downloads -iname *btsync* | ls -al find ~/Downloads -iname *btsync* | xargs ls -al ...
-2
votes
1answer
43 views

Copy files such that individual files gets copied to the folder having file name as a string within complete folder name [closed]

I am using Cygwin as Linux shell, I have following contents in my current working directory: Files : Abc.dat 123.dat 456.dat Directories: W_Abc_w W_123_w W_456_w Now I want to copy files as ...
-2
votes
1answer
95 views

What does -y mean in an apt-get upgrade command, and where can I find a reference on command flags? [duplicate]

I have seen commands like this: sudo apt-get upgrade -y I would like to know the meaning of the -y flag and a reference for Linux command line flags in general.
-2
votes
2answers
222 views

How can I start a video from terminal [closed]

I've been trying to make an executable file that maxes the volume of a person's computer then opens and plays a specific video, but I don't have a command to play the video after it has opened, so the ...
-2
votes
1answer
92 views

problem when the file upload to github repository [closed]

usually i can push my file or folder to github repository , but usually I often upload in excess may be 5 to 8 times the upload in a day
-2
votes
1answer
71 views

How I can verify the domain syntax in a file?

I have tried the script to store the domains with proper syntax. But I didn't got the proper output. Here is what I did and what I got and also this command got stuck: while read -r url; do ...
-2
votes
1answer
146 views

is there a terminal to practice Python language on?

I was hovering on ubuntu software terminal emulator section and saw many terminal apps, which basically i have no idea about the differences ( doesn't matter) but I wonder if there is such a terminal ...
-2
votes
1answer
53 views

Extract specific mimetype in shell [closed]

How can I extract from tar archive just text and executable files? Can I do this somehow with wildcards?
-2
votes
1answer
60 views

Scripting a script that tests a shell [closed]

I have a custom shell and want to test its arithmetic function. I wrote a script to test it and it performs the arithmetic but it is also trying to execute the result as a program. printf "******...
-2
votes
1answer
154 views

I want to install vim but the following error appears [closed]

checking for tgetent()... configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with --with-tlib.
-2
votes
2answers
102 views

Joining 2 files and comparing them [closed]

I have two files where I want to use something like a left join that is used in SQL. File1: column1 column2 column3 column4 Ab Cd 100 Us Ef Gh 200 Us File2: ...
-2
votes
2answers
1k views

Write a shell script that asks a user for the absolute path to a directory,

Write a shell script that asks a user for the absolute path to a directory, the script should test to see if the directory exists. If it does ls -l the directory. If not tell the user that the ...
-2
votes
1answer
2k views

How can I shutdown multiple systems using terminal?

How can I shutdown multiple systems using the terminal? Also, is it possible to send a message to multiple computers before shutting them down? I cannot login to them via SSH, but all the computers ...
-2
votes
1answer
1k views

Adding Scala to `PATH` in Zsh

I have downloaded Scala to ~/bin for easy access on my machine; but I seem to have some difficulty adding it to the PATH. On my MacBook I simply added the following to ~/.profile and everything just ...
-2
votes
2answers
1k views

program to access files on internal hard drive, windows [closed]

I would like a script that will rename the file Utilman.exe in Windows/System32 to NotUtilman.exe and renames cmd.exe to Utilman.exe . I am not asking for the full script, I am new (-ish) to Ubuntu, ...
-2
votes
3answers
59 views

Can anyone tell me how can this be achieved? [closed]

Prompting a yes no interface to user so as to re-execute a block of code.lets assume that block of code is echo "Hello"
-2
votes
1answer
91 views

i wanna install Intel Compiler. But sudo command does not work

I write the command like this sudo ./install.sh But ubuntu says sudo: ./install.sh: command not found How can I install this program?
-2
votes
2answers
580 views

How do you create custom terminal commands [duplicate]

For instance if I wanted to type $Ctrl+Alt+Delete and it would return the same as $reboot this way when editing custom taskbar launchers we can execute key commands via terminal. Would I write a ...
-2
votes
1answer
806 views

How to absalutely fully change terminal prompt to color

its mind bogglingly supprising how hard it is to TOTALLY change terminal prompt graphic featurs.... Like PS1 Or in my case color features.... I have edited /etc/bash.bashrc and ~/.bashrc and /root/....
-2
votes
1answer
66 views

Unable to mount exFAT dev/sdb2 [closed]

I am unable to mount dev/sdb2 exfat filesystem. help me guys.
-2
votes
1answer
123 views

“[: s: integer expression expected” error in Bash script

This Bash script produces multiple "integer expression expected" errors when run: echo "Enter string" read str len=`echo $str|wc -c` len=`expr $len - 1` i=0 j=1 l=`expr $len / 2` while [ $i -le $l ] ...
-2
votes
1answer
42 views

How to disable hot corner in CentOS in command prompt [closed]

I downloaded gnome-tweaks and was able to do it through their GUI. I was wonder if there a way to do this on command prompt ? thank you.
-2
votes
1answer
107 views

Automatic 777 permissions on new files and folders inside htdocs apache2 folder

I want to set 777 permissions to all new files and folders inside apache2 /var/www/html/apps/ When I extract zip file or create new file, I give 777 permissions via terminal, but this process needs ...
-2
votes
1answer
169 views

uninstalling whatsapp

I have installed WhatsApp by following these steps: Type sudo -H gedit /usr/share/applications/whatsapp-webapp.desktop in the Terminal. Copy the following text to opened screen: #!/usr/bin/env xdg-...
-2
votes
1answer
71 views

Terminal confusing [duplicate]

How can I learn the terminal terms so I know what I'm doing instead of googling everything, in the sense where I can at least guide myself to do what I need to? An example is I want to use aircrack-ng ...
-2
votes
1answer
827 views

How Do I Accept the Microsoft EULA agreement for ttf-mscorefonts-installer? [duplicate]

Package configuration ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐ │ │ │ TrueType core ...
-2
votes
1answer
2k views

Can't run java program with terminal in Ubuntu 18.04.2 [closed]

I can't run any java program with terminal: openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2) OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-...
-2
votes
1answer
37 views

Setting separate file permissions for Owner, Group, and All on the same folder

How would I grant myself full file permissions on a particular folder, and also allow others to write to the folder (but not view its contents)? I have already tried chown and chmod commands.
-2
votes
1answer
2k views

CHMOD 400 not working trying to ssh to amazon instance [closed]

I am trying to ssh to amazon instance with my .pem file however CHMOD 400 is not working as it says “this command is not available”. It works on my mac terminal however not on my Linux Ubuntu 18.04.
-2
votes
2answers
177 views

Ubuntu Terminal Freezes Commands Cannot Execute Until a Reboot

Running Any command for instance sudo service network-manager restart seems just stays idle when i press enter key. I have to reboot to restore the machine. What must i do to stop my terminal from ...
-2
votes
1answer
1k views

Syntax error: “(” unexpected - Ubuntu terminal

I am running the following script which starts with the #!/bin/bash #!/bin/bash # ############################################ # User Configuration ############################################ # ...
-2
votes
1answer
87 views

Select using grep and sed

I have written a Bash script to select only the number in this phrase (below) and copy it into a file. siesta: Total = -29.649928 Here is my solution (at least a makeshift solution): grep 'Total =' ...
-2
votes
1answer
28 views

how to eliminate the unused lines from output

I am new to scripting I got below output from my script. OUTPUT: /opt/soft/was85qa/WebSphere/gct8apps_qa_node/config/cells/gct8apps_qa_cell/clusters/elmd_qa/variables.xml How to eliminate below ...
-2
votes
1answer
60 views

-bash: cd: ./pgsql: Catalog or file not found [closed]

Why this happening? user@server01:~$ ls pqsql sources user@server01:~$ cd ./pgsql -bash: cd: ./pgsql: Catalog or file not found user@server01:~$ cd /home/user/pgsql -bash: cd: /home/user/pgsql: ...
-2
votes
1answer
434 views

How to disable print key using terminal?

In my application I have to disable print key during the application process and later need to enable it. I have tried with xmodmap -e 'keycode 107 = ' but it doesn't resolve. The purpose of the ...
-2
votes
1answer
113 views

I'm getting errors in this program for armstrong number

echo "Enter the no" read a echo "The number is:" echo $a b= `expr $a % 10` c= `expr $a / 10` d= `expr $c % 10` e= `expr $d / 10` f= `expr $b \* $b \* $b + $d \* $d \* $d + $e \* $e \* $e` if [ $f -eq ...
-2
votes
2answers
180 views

How I can filter out emails from specific domains?

From a file, containing one email per line, I have tried to remove the domains in the emails using this command: grep -viwE "(gmail.com|hotmail|yahoo|aol|rediffmail.com|msn|outlook|inbox.com|icloud....
-2
votes
1answer
765 views

I can't remove root terminal

I tried apt-get remove root terminal it says it can't locate it. Also it doesn't show up in dash. I also tried: sudo apt-get --purge remove root terminal . I tried locate root terminal but couldn'...
-2
votes
1answer
40 views

Problems with variables on shell

I've got some problems on my exercise. When I pass parameter through files using a number as variable input (1="$variable") I got those error messages each time I use variable 1: "...