The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Find Exit Code of Last Command Run On The Command Line

TODO: Pull subtitle into page object

This is how you find the exist code of the last command you ran:

code_start_default_section code_end_default_section
Results
1

#+REFERENCES:

- https://bash.cyberciti.biz/guide/The_exit_status_of_a_command

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Find Exit Code of Last Command Run On The Command Line

-- p

This is how you find the exist code of the last command you ran:

-- code/
-- shell

echo $?

-- /code

-- results/

0

-- /results

-- p

A `0` is returned if there were no problems. Any non-0 value represents an error.

-- p

For example, this will return `0` (assuming `date` runs properly):

-- code/
-- shell

date
  echo $?

-- /code

-- results/

Sat Sep 10 11:18:59 EDT 2022
  0

-- /results

-- p

And this will return `1` because running false returns it like an error would

-- code/
-- shell

false
  echo $?

-- /code

-- results/

1

-- /results

-- p

#+REFERENCES:

-- p

- https://bash.cyberciti.biz/guide/The_exit_status_of_a_command


-- categories
-- Command Line 

-- metadata
-- date: 2020-12-10 12:08:49
-- id: 01es6t0w
-- status: published
-- type: post 
-- SCRUBBED_NEO: false
-- site: aws