• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

  • CF has always been a site that welcomes people from different backgrounds and beliefs to participate in discussion and even debate. That is the nature of its ministry. In view of recent events emotions are running very high. We need to remind people of some basic principles in debating on this site. We need to be civil when we express differences in opinion. No personal attacks. Avoid you, your statements. Don't characterize an entire political party with comparisons to Fascism or Communism or other extreme movements that committed atrocities. CF is not the place for broad brush or blanket statements about groups and political parties. Put the broad brushes and blankets away when you come to CF, better yet, put them in the incinerator. Debate had no place for them. We need to remember that people that commit acts of violence represent themselves or a small extreme faction.
  • We hope the site problems here are now solved, however, if you still have any issues, please start a ticket in Contact Us

Learning to use the bash command line

skalle

Delete system32.
Jun 17, 2016
167
86
USA
✟32,101.00
Gender
Male
Faith
Atheist
Marital Status
Married
Politics
US-Green
Okay, this stupid but harmless command actually works

sudo apt install sl

After it is installed, type sl

That's the reverse of ls, which prints the contents of the current directory. Just a nice reminder that you've made a typo. :)
 
  • Like
Reactions: Vince53
Upvote 0

Vince53

Junior Member
Oct 22, 2009
3,011
599
72
Mexico
Visit site
✟44,794.00
Country
Mexico
Gender
Male
Faith
Baptist
Marital Status
Married
Politics
US-Republican
Not really, Skalle. If you accidentally type sl instead of ls, the program only runs for a couple of seconds, and it shows you where your mistake is (by letting you know that you typed sl instead of ls).
 
Last edited:
Upvote 0

Vince53

Junior Member
Oct 22, 2009
3,011
599
72
Mexico
Visit site
✟44,794.00
Country
Mexico
Gender
Male
Faith
Baptist
Marital Status
Married
Politics
US-Republican
I need to clarify:

Bash is not an operating system. It is a "shell" whose primary purpose is to help developers write programs. However, people have written various Bash programs that you can download for free, using the sudo command. But Bash actually includes some built-in programs. Here are three of them:

cal prints this month's calendar with today's date.

factor (number) breaks any number down into its prime factors. For those who forgot your high school math, a prime number can only be divided by itself and 1. Type factor 4 into the command line, and it will tell you 4: 2 2. Since 2 is a prime number, it cannot go lower than 2. No matter how large the number, the factor command will break it down into prime numbers. Factor 456 will tell you that 2 2 2 3 19 are the prime factors of 456.

for i in {1..9}; do for j in $(seq 1 $i); do echo -ne $i×$j=$((i*j))\\t;done; echo;done This prints the times tables up to 9. You can replace the numbers 1 and 9 with other numbers. I actually typed in 111 and 999, and it gave me all the times tables for them.
 
Upvote 0