Skip to main content

All Questions

Tagged with
0 votes
1 answer
506 views

ssh port forwarding through a pseudo terminal

Here's a situation: I do all my work on a Mac. There's a certain linux server 'server01' that provides access to another linux server 'server02' via a pseudo terminal So, to ssh into '...
user3142747's user avatar
0 votes
2 answers
6k views

No entry for terminal type when SSHing into a router?

I’m trying to SSH/Telnet to my home router (Zyxel P-2812HNU-F1). I know the router host and IP address. Also the administrator login credentials. I’ve set ssh to port 2222 and telnet to 2323. When ...
MSD's user avatar
  • 103
2 votes
2 answers
2k views

Does it matter how many spaces exist in terminal commands?

For those of us humans trying to learn terminal languages and codes, does it matter how many spaces are or are not included in the commands and scripts of various languages? For instance, is there any ...
grad student's user avatar
7 votes
3 answers
2k views

show man pages in terminal without a pager

man defaults to using a pager. For short pages, I want to just echo them to the terminal without paging. I'm on OS X. Things I've tried: man -t man #produces PostScript output man ...
Chris F Carroll's user avatar
1 vote
3 answers
5k views

How to list only files of a certain type in terminal?

How I can list all files of a certain type in a directory? For example, if I want to see all MP3 files in the current folder, what do I do?
Marcello B.'s user avatar
0 votes
1 answer
777 views

CR versus LF: which should I recognize as "end of line" in terminal program? [closed]

I understand the use of line feed and/or carriage return as line separators in Windows, Macintosh and Linux. But now I'm writing a program that will accept text user input over a TCP socket, and I ...
Daniel Griscom's user avatar
0 votes
1 answer
273 views

Key codes: xterm vs. Terminal.app

I mostly use iTerm, and it lets you customize the key codes sent to your terminal by individual keys. It has a couple presets labeled xterm Defaults and Terminal.app Compatibility. I'd like to make my ...
ivan's user avatar
  • 1,075
8 votes
3 answers
571 views

How to have a better view when typing out directories in terminal?

I am currently using a Mac and learning to use the terminal, but the question applies to Linux systems as well. I would like to ask, when typing out paths in the terminal/command line, is there a way ...
user1367903's user avatar
2 votes
3 answers
10k views

How to switch between command-line and GUI in VM on a Mac?

I have installed CentOS 7.1 in VMware Fusion of my Mac. I logged into the terminal (default runlevel 3) and started the GUI using the command "startx". I want to switch back to the terminal. Ctrl+Alt+...
user1897373's user avatar
4 votes
3 answers
478 views

Prevent fork bomb when using interactive commands (like script) in .bashrc

I've often wanted to log the output of Terminal. So I tried to set script to run at startup; in my .bashrc file I put: script ~/Logs/$(date "+%Y-%m-%d.%H-%M-%S") Because the commands in my .bashrc ...
user avatar
0 votes
1 answer
50 views

colorize files on MacBook terminal

I have a dedicated remote Linux server, and was able to add this code to my ~/.bashrc file: alias ls='ls --color' LS_COLORS='di=34:fi=0:ln=36:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90' export ...
Oliver Williams's user avatar
4 votes
2 answers
3k views

Is it possible to highlight text with the keyboard only?

I know you can highlight text with the mouse, but can this be done in a terminal on Linux/MacOSX with the keyboard only? I've tried using shift and other commands with the arrow keys to no avail. Is ...
ride the whirlwinds's user avatar
1 vote
1 answer
964 views

Terminal new window always shows -bash: Searching: command not found

When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though open a new terminal window, it still pops up at the top of the ...
CarolineGao's user avatar
12 votes
3 answers
33k views

What is the difference between terminal and bash? [duplicate]

When I open Terminal Window in Mac OS X, I can type bash and hit enter and I will see: Last login: Fri Feb 20 14:30:56 on ttys000 Korays-MacBook-Pro:~ koraytugay$ bash bash-3.2$ I can for example ...
Koray Tugay's user avatar
  • 1,950
0 votes
2 answers
2k views

Strange Vim/terminal use from ssh via Mac OSX

I am using terminal from a Mac OS X 10.10 (Yosemite) and SSH’ing into a fedora machine and am having a couple strange issues with the terminal: When I :q from vim, the contents of the vim screen is ...
drjrm3's user avatar
  • 1,506

15 30 50 per page