Skip to main content

All Questions

Tagged with
2 votes
1 answer
3k views

Long form command line flags in Terminal?

I hope this is the right place to ask this question. So basically, I'm currently combing through some of the more commonly used Terminal commands, and I find it really hard to remember the short form ...
Baggio Wong's user avatar
1 vote
2 answers
639 views

Terminal will not allow SSH to Linux

I have a VPS that I have accessed using Terminal in the past. When I open Terminal I get Last login: Tue Aug 29 04:02:48 on ttys002 Mac-mini:~ administator$ All of the articles I have been able to ...
HappyWebStuff's user avatar
0 votes
2 answers
1k views

bash broken osx "[Process completed]"

I had an error in a script, which ran 'brew unlink bash'. I then started getting: Warning: bash already installed, it's just not linked I tried brew update && brew install bash sudo bash -c ...
codyc4321's user avatar
  • 410
1 vote
1 answer
382 views

Output of du command

I have a folder and it is 16.91GB in size(I checked in Finder). I tried to check the size by using du command. So, I tried du -sh ~/folder and I got 16G. I thought I will get the output in Bytes ...
SkrewEverything's user avatar
0 votes
2 answers
1k views

Can't access Linux server via SSH

I have a MacBook Air, version 10.12.1 (Sierra). I have been thus far with Windows for the better part of the last 20 years and few days ago I switched to Mac for the first time. I have a shared ...
MAR's user avatar
  • 143
0 votes
2 answers
5k views

are we able to clear mysql terminal (not just clear but totally clean)?

I know that there are command such as \! clear, system clear, using ctrl + l in terminal to clear the terminal. But I realize by clear, it's just leaving a gap and all previous results are still at ...
Dora's user avatar
  • 147
17 votes
3 answers
22k views

How to force ls terminal command to show results in Bytes while I have set the default to ls -h in bash profile?

I am following the snippet here to improve my terminal command in Mac OSX. It sets the default value of ls results to human-readable by exporting alias ls='ls -GFh' to bash profile file. This is very ...
cybergeek654's user avatar
1 vote
0 answers
356 views

How can I correct two-finger scrolling on a Linux VM under OSX?

An earlier poster posted some of my concern at https://apple.stackexchange.com/questions/235029/in-terminal-how-to-exit-the-two-fingers-history-scrolling-mode, and I am grateful; I now know how to get ...
Christos Hayward's user avatar
0 votes
1 answer
773 views

Why does terminal repeat "//: is a directory" after I source .bash_profile?

Sergios-MBP:~ home$ nano ~/.bash_profile Sergios-MBP:~ home$ source ~/.bash_profile -bash: //: is a directory -bash: //: is a directory -bash: //: is a directory -bash: //: is a directory -bash: //: ...
Sergio Valentin's user avatar
1 vote
1 answer
4k views

What does a question mark after the file name mean using ls terminal command?

What does a question mark after the file name mean using ls terminal command? I am using a Mac running OS X Yosemite (v.10.10.5) When I do ls command at terminal, I get back a list of files (the same ...
Mowzer's user avatar
  • 2,339
1 vote
1 answer
3k views

Terminal: How to list current directory while typing out a path

I'm not sure how to phrase this correctly but I want to know how in the terminal to do the equivalent of 'ls' when typing out a path. So for example i'm typing in: sudo "/Library/Application\ ...
Jacob2471's user avatar
0 votes
1 answer
1k views

Alias command from terminal that opens a new terminal on a specific folder

I have this command already working in my .bash_profile: alias mysite='cd /Applications/sites/mysite;pwd; php artisan serve --port=9000 | open http://localhost:9000 | open -a Finder ./' So it: CD's ...
Francisco Caviano's user avatar
0 votes
1 answer
1k views

Needing to open OS X bash script as via launchd IN a terminal window

I've got a lengthy and complex bash script which works OK, but I'm trying to automate my deployment process and I'm flummoxed at this point. I can get the script to run as a LaunchAgent no problem, ...
realdannys's user avatar
1 vote
1 answer
232 views

Why does CTL-3/CTL-# equal CTL-[? (and others) in the case of ASCII control characters

I've been rediscovering ASCII control characters as I fiddled with some terminal emulation code, and wrote a small program that outputs the hex value of each key I press (tcsetattr() with ~ICANON). ...
John de Largentaye's user avatar
1 vote
0 answers
564 views

How come I have to `source ~/.profile` every time I launch a new terminal?

When I launch my terminal and I do node --version I get 2. w/e Then I try to do nvm use 5.3.0 and it says nvm: command not found So then I have to source ~/.profile Then I can use the nvm ...
XCritics's user avatar
  • 179

15 30 50 per page