Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 94914

This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.

2 votes

Why TEST = Hello with blanks doesnt work in the terminal?

In bash a variable assignment has the syntax: name=[value]. You cannot put unquoted spaces around the = because bash would not interpret this as the assignment you intend. bash treats most lists of wo …
karel's user avatar
  • 116k
1 vote
Accepted

replace multiple files with 1 new file

Open the terminal and run: cd /var/www sudo find . -type f -name 'config.dat' -exec cp /home/john/config.dat {} \; Here I have assumed that the /var/www directory is owned by root, but if you ar …
karel's user avatar
  • 116k
2 votes
Accepted

Copy files in a directory to another directory

Open the terminal and run: find /home/troy/Downloads/ -type f -exec cp {} /home/troy/.gs/ \;
karel's user avatar
  • 116k
1 vote

a command line output error generates while installing java on the system

You can't install a Windows Java program natively in a Linux OS. Packages in the Ubuntu Software Center have the .deb format, not the .exe format used by Windows executable files. In the Ubuntu Softwa …
karel's user avatar
  • 116k
1 vote

Unable to assign command output to a variable

Your second line of script should work unless the pur_bom_interface_daily*.log files do not exist in your current working directory. To prove it try this example code block: mkdir logfiles cd logfile …
karel's user avatar
  • 116k
3 votes
Accepted

does << (input redirection in append mode ) works only for newline?

The final 'EOF' (the LimitString) should not have any whitespace or other characters in front of the word, because it means that the LimitString (in your case ABC) will not be recognized.1 1Adapted an …
karel's user avatar
  • 116k
3 votes
Accepted

tar.gz file wont open

I downloaded the M3D-Linux-1.5.0.70.tar.gz and got the same error when trying to extract the contents of the archive from the terminal. The Archive Manager application extracted the contents of the ar …
karel's user avatar
  • 116k
2 votes

How to make a global code change

There is an app for exactly that work flow in the default Ubuntu repositories called Geany. Geany is so lightweight that it can batch edit 50 web files at the same time. Because Geany is a GUI program …
karel's user avatar
  • 116k
2 votes
Accepted

How to fix this error: Too many positional arguments (1)?

Long and Assignment in line 1 are interpreted by the Bash shell as too many positional arguments, 2 instead of 1. Instead enclose the whole path in quotes like this: '/home/farhana/Desktop/Long Assign …
karel's user avatar
  • 116k
3 votes

`read -t` is not printing my input

The correct syntax for read is demonstrated by this example: $ read num 10 $ echo "$num" 10
karel's user avatar
  • 116k
2 votes

I'm having trouble installing grapejuice

Grapejuice is a launcher for the popular Roblox platform. To install Grapejuice in Ubuntu run the following commands. sudo dpkg --add-architecture i386 curl https://gitlab.com/brinkervii/grapejuice/-/ …
karel's user avatar
  • 116k
5 votes
Accepted

How to switch to a command-line console

Open a text-only console by using the keyboard shortcut Ctrl+Alt+F3. At the login: prompt type your username and press Enter. At the Password: prompt type your user password and press Enter. Now you …
karel's user avatar
  • 116k
24 votes

Set terminal size permanently

Ubuntu 16.04 and later In Ubuntu 16.04 open the terminal, select Edit->Profile Preferences -> General tab and change the values for columns and rows after where it says Initial terminal size:.   16.0 …
karel's user avatar
  • 116k
0 votes

How to run a downloaded program for use with Betfair

The following instructions were tested in Xubuntu 14.04 running in VirtualBox, because I don't like installing a betting program in a host OS, and even though mt3 does not run as root neither should y …
karel's user avatar
  • 116k
0 votes

Sabotaged by X New Star Lite laptop running Ubuntu

Prepare an Ubuntu 22.04 live USB by following the instructions in What is the proper way of creating installation media from Ubuntu iso?, and boot from it. Select the Try Ubuntu option to start an Ubu …
karel's user avatar
  • 116k

1
2 3 4 5
10
15 30 50 per page