A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
0
votes
0answers
19 views
Hex dump with grep to find a file path [on hold]
When I run the command hd along with a grep search it returns a certain file twice. Would it be possible to find the file path where it is actually located to make it possible to open and view the ...
-3
votes
0answers
24 views
Why are multiple instances of /usr/bin/X running at once on Linux Mint 17.3? [on hold]
If it is normal for /usr/bin/X to have four instances running at once, can anyone please explain why this is the case?
1481 root 20 0 915M 171M 141M S 4.0 1.1 11:07.69 /usr/bin/X :0 ...
1
vote
1answer
31 views
How to get `yum list` output to stay on one line when getting output via remote ssh command?
When I SSH to a machine with ssh machine and run yum list it outputs everything that's installed as expected, and importantly every item is on one line like so:
xz-devel.i386 ...
0
votes
1answer
22 views
(ls) command won't show exact size - Weird output [on hold]
I am trying to find the size of the files on my hard drive in exact bytes, but whenever the size gets too big the number turns all weird (like 1.98329e+12). Can I stop it from doing this or convert ...
1
vote
1answer
29 views
Reopen Terminal windows after restarting
In Mac, if I have a few Terminal windows open and I restart the computer or quit Terminal, the windows that were open last are opened again with their working directories and command histories ...
2
votes
2answers
63 views
Why does “head /bin/ls” reset the terminal
If you do something silly like cat /var/log/wtmp your terminal can get messed up as shown in the screenshot. I know there are a number of ways of fixing this. One of the ways not mentioned on that ...
4
votes
3answers
53 views
Is there any objective benefit to escape sequences over tput?
In people's '.*rc' files I see online or in various code, I tend to see a lot of people who manually use ANSI escape sequences instead of using tput.
I had the understanding that tput is more ...
0
votes
1answer
21 views
Display output from command and save to file [duplicate]
If I wanted to save output to a file from a command like make, I would do:
make > out.txt
However that stops the output from being displayed on the console window, and only saves to a file.
Is ...
1
vote
2answers
40 views
Is there a program like tmux or screen but only for attaching or detaching a session
I was wondering if there was a program like GNU/screen or tmux that would allow me to attach or detach a session with a running process but would not provide all of the other features such as windows ...
3
votes
4answers
69 views
How can I save the output of “echo -e '\e]4;40;?\a'” into a variable, or pipe it?
Inspired by this forum post, I ran this command at a Bash prompt:
echo -e '\e]4;40;?\a'
Which outputs:
# 4;rgb:8b8b/cdcd/0000
But the weird thing is, the output somehow becomes my prompt's next ...
0
votes
1answer
8 views
Less quit behavior
I'm not sure how to describe this but I'll try by comparing it to vi. When I open vi, do something, and then exit vi it brings me back to the terminal where I can see all of the commands I had ...
1
vote
0answers
53 views
How to start a phone call from the terminal in Ubuntu Phone?
The ability to start a phone call from the terminal is mentioned in this transcript of a Q&A-session with the Canonical community team.
So - did somebody figure out, how to do it? The terminal ...
1
vote
1answer
18 views
Reserve pts range for some users
Is possible to reserve pseudo terminal range ids for some users ?
Consider an user which should get preferable (or exclusively) pts id from 500 to 600, other from 0 to 400, and so on.
-2
votes
0answers
14 views
Will zip -r command on remote server be cancelled if I exit terminal? [duplicate]
I have done a lot of Googling, and cannot find an answer. I have made a "zip -r home" request on my server via my terminal. The home directory is over 30GB. I need to leave the office at some point ...
1
vote
3answers
62 views
How can convert characters into characters that'll produce beep noises?
I'm new to Linux and have recently started working on my very first (very simple) project - a morse code generator. I've been able to get the translation working, and now I want to take the next step. ...
-4
votes
2answers
20 views
Create a text file with spaces and sentences stored inside and make a copy of text file
How can I create a text file called ‘example text file’ (with spaces). Write a few sentences to store in this file. Make a copy of file with a different name.
-3
votes
1answer
30 views
What is the purpose of this command ls -l> /testA921/file [closed]
What is the purpose of this command ls –l> /testA921/file?
-2
votes
1answer
30 views
Explain, using examples, the purpose of the bin directory is my answer suitable for this question?
I have looked at similar questions which already have answers but still not entirely sure on the answer. In addition I don't won't to copy someone and thats it I want to understand the answer.
Here ...
1
vote
1answer
55 views
Strange character overlap in terminal
I'm using bash version 4.3.42(1)-release in an ArchLinux/Gnome environment.
When I type my commands some of the written characters gets transformed in some weird ones. Overall, all displayed text ...
-7
votes
0answers
19 views
What is output redirections and what does tree > example mean? [duplicate]
What is output redirections and what does tree > example mean?
0
votes
0answers
7 views
How to hide the tab bar in roxterm?
In roxterm when I go to edit profile under tab I activate hide tabs but they are still appearing when I create a new tab or window. Any idea on how to hide tabs under roxterm ?
-2
votes
1answer
22 views
How do I check if a user has been created? [closed]
How do I demonstrate that these users have been created and are assigned to their a certain group?
Can I do this by the command line or do I have to do it by the GUI (graphical user interface)
0
votes
0answers
25 views
Is my answer correct on what is the difference between ls > list and ls >> list [duplicate]
What is the difference between the commands ls > list and ls >> list? Is my answer correct?
As my answer I have put the following.
The command ls > list creates a new file named list and ...
1
vote
0answers
24 views
Is there a command to list the users which user or root has created? [duplicate]
Is there a command where which I can input into terminal to list the users which have been created by a user or root? I don't want to use the GUI interface I'm wondering if there is a command.
1
vote
1answer
36 views
Why xfce4 terminal colors are so ugly? [closed]
Hello I have a big problem, I'm trying to install some nice color themes on fish and vim but it looks like that my xfce4-terminal has some ill looking internal colors. I installed gnome-terminal to ...
-9
votes
1answer
46 views
Unix “ls” command? [closed]
Can someone explain to me what are all the options available with the -la flags for the ls command ? I have read the man pages, but still not sure.
0
votes
0answers
37 views
Check all the active IP's on a switch [migrated]
I have a small LAN network.
Each table have a switch and the laptops are connected to that switch.
There is a host who is using large sun of internet and i would like to find out who he is. I have ...
-1
votes
2answers
14 views
How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users
How to set 256colors in xfce4-terminal 0.6.3 that is using the fish shell, always for all users ? Can't find this info anywhere and it's getting hard.
0
votes
1answer
34 views
How does Raspbian draw images on the terminal?
When you turn a Raspberry Pi on, it displays three (or four) pictures of raspberries in the top-left corner of the screen. Now, as far as I know, you cannot draw images or any other non-text content ...
3
votes
1answer
124 views
Does “color” in TERM always mean I can use colors?
Should the following always indicate that I can use escape sequences and tput to colorize things?
if [[ $TERM == *"color"* ]]; then
true
else
false
fi
1
vote
0answers
12 views
how to set up the format of a title of the tabs of Terminator?
I can't find any method of how to set up the format of a title of the tabs of Terminator. it's probably has to do with its config at ~/.config/terminator/config but how exactly?
I want to shorten ...
0
votes
1answer
19 views
Giving a user permission to modify/edit/delete files in “/” directory (Not using Terminal, but with File Explorer)
I'm currently having an issue trying to give a user the permissions that the 'root' user has, which is to modify anything in the / directory. I've changed the /etc/passwd file but still no luck. I've ...
3
votes
2answers
71 views
How to create an X window which won't close by any way other than a terminal command
I'm trying to create a process that will start with X11, will be graphical and unkillable by my own user.
More specifically, I have an urxvt drop-down terminal starting at startup and running a tmux ...
5
votes
2answers
251 views
How is the su command masking/protecting my password from being displayed on screen? [duplicate]
Apologies if this is an abstract question - I'll try to be as specific as possible.
When I'm at the bash shell and switch to a different account via su - foo, I'm prompted for a password. The ...
2
votes
1answer
49 views
How to substitute one color code for another in terminal?
Can I make bash automatically substitute one color code for another? For example, whenever a program outputs text wrapped in color code for bold foreground, I would like bash to actually use code for ...
0
votes
1answer
29 views
How to overwrite the default shortcuts of the terminal in xfce?
I have xfce installed and use xfce terminal. I can't figure out how to overwrite the default shortcuts so that I can use Ctrl+C(V) for copy/paste in the terminal. So far in other desktop environments ...
0
votes
2answers
45 views
Execute a shell script via crontab
Currently I got stuck by trying to execute a shell script via crontab. It does not work and I can't figure out what is wrong here.
What I want to do is: Execute a javascript (index.js) file with ...
0
votes
0answers
30 views
Terminal colors changing when opening a new tab
I'm running Ubuntu 14.04 (x64 desktop edition) and I have an issue in my terminal (bash) where my colors seem to get "saturated" and my line cursor changes to black when opening a new tab, the first ...
1
vote
1answer
21 views
Linux Terminal autologin only once after reboot
I'm trying to have my computer automatically log in as a specific user after reboot on an Arch Linux machine. I followed the guide from the Arch Linux Wiki, ran # systemctl edit getty@tty1 and pasted ...
0
votes
1answer
38 views
is not possible to open the terminal emulator?
Hello all i can't open the terminal emulator, when i try to do it, i can see the lines on the picture and then gets closed.
i tried to create a new user but is giving, it worked but i can't compile ...
0
votes
1answer
30 views
xterm no absolute path found for shell
I am trying to run a script in SUSE Linux Enterprise 12 from java using ProcessBuilder. Codes for this follows:
ProcessBuilder pb = new ProcessBuilder("xterm", "-e", "script_path");
Process pr = ...
0
votes
0answers
24 views
bash's pseudo terminal master [duplicate]
I learn when we use pts, there is master of pts.
Then, when we type the characters on the pts(which is the terminal of bash), not only the output of bash goes to pts but also its master?
I confirm ...
0
votes
1answer
62 views
How to have Terminator display remote hostname in title bar? [duplicate]
When I am SSH'ed into any one of my Linux devices, the title bar on Terminator displays user@hostname, where hostname is the computer I am SSHing from, rather than the computer I am SSH'ed into (i.e. ...
0
votes
2answers
51 views
Removing ISO 9660 from USB using Terminal
I received a USB flash drive that contains a pre-installed ISO 9660 (Joliet) image on it. To delete the image and free up space on the drive, I attempted to use sudo rm -rf /Volumes/ISONAME via a ...
1
vote
0answers
33 views
Switching (su) to a paswordless account
I've made account A passwordless with passwd -d A. Now, when I log in as user B from a terminal and run su A I can switch to user A (and I am not even asked for a password). If, however, I log as ...
2
votes
3answers
343 views
New line after the command prompt
Is there any way I can configure terminal applications to display command text from front of $ to under the user name on terminal window? See image attached. I use terminator.
3
votes
2answers
291 views
How do I print the (numerical) ASCII values of each character in a file?
How can I print the numerical ASCII values of each character in a text file. Like cat, but showing the ASCII values only... (hex or decimal is fine).
Example output for a file containing the word ...
2
votes
3answers
95 views
Trying to understand .bashrc, env, and export
Disclaimer: Using bash.
I just need some confirmation / correction on my understanding of these things:
env is basically displaying the current environmental variables that are accessible to my ...
30
votes
3answers
4k views
Why is the password I entered not visible?
Below is an image of the process I took to create a user on bash in Linux.
I understand that the password shouldn't be displayed for security purposes, but what I mean is, why do asterisks (or the ...
2
votes
1answer
40 views
Capture tmux status bar content
I wrote an addon to tmux, tmux-gitbar, it adds to tmux status bar some information about the current Git working tree (name of local and remote branch, working tree is clean?, etc.). So basically it's ...