Skip to main content

All Questions

0 votes
1 answer
580 views

Is there a way to programmatically set DISPLAY when executable is run as sudo instead of failing?

When I run any GUI application on Linux (Ubuntu) using sudo command from the Terminal, the application fails with QT error as below. Almost every application fails when attempted; here is an example ...
Vijesh K's user avatar
0 votes
1 answer
443 views

Get free/used ports in a specific range

Is it possible to get either the free or used ports between a specific range? If yes, whats is the command? Thank you in advance!
94Joe's user avatar
  • 5
1 vote
2 answers
2k views

Information of new user won´t show in terminal

I created a new user and logged in successfully on my ubuntu 20.04 machine. When I logged in as root the terminal looks like this: root@ubuntu-s-1vcpu-1gb-fra1-01:~# When I login with my "...
Data Mastery's user avatar
0 votes
2 answers
5k views

Different ways to execute a binary? [closed]

Are there more ways of executing Unix binaries using a terminal (command line)? Using echo as an example: $ /bin/echo "test" test $ cd /bin/ $ ./echo "test" test $ eval echo "test" test
user321532's user avatar
-1 votes
1 answer
1k views

Unable to connect to Active mode FTP Server via Commandline

I'm trying to connect to an FTP Server via Commandline in Ubuntu Terminal. But, I'm getting following error. FTP connect Mode : Active Mode $ ftp xxx.xxx.xxx.xxx Connected to xxx.xxx.xxx.xxx 421 ...
Shailesh's user avatar
1 vote
1 answer
68 views

Recursively find files that have a percentage of lines in common

Is possible to recursively find files that have a percentage of lines in common? I want an output where I have only files that are 50% the same of others or have 20+ lines in common. I'm trying to ...
devin's user avatar
  • 111
8 votes
1 answer
9k views

Untar a specifc folder within tar.gz

How do I untar/uncompress a specific folder within a tar.gz using the terminal/commandline (Ubuntu 14.04 (Trusty Tahr))? Precise: -file.tar.gz -- folder1 -- folder2 How to extract... ... ...
frank's user avatar
  • 237
0 votes
1 answer
129 views

Ubuntu x86 10.10 terminal

I just downloaded a Ubuntu v10.10 vmware image for Windows. I'm trying to install a web application that can only run on Linux MySQL, Apache and PHP. How do I open a terminal in Ubuntu?
JustBeingHelpful's user avatar